We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d682d6 + 2e0a843 commit 60e0c20Copy full SHA for 60e0c20
packages/mdx/src/plugin/annotations.ts
@@ -25,6 +25,7 @@ export function extractAnnotationsFromCode(code: Code) {
25
while (lineNumber <= lines.length) {
26
const line = lines[lineNumber - 1]
27
const { key, focusString, data } = getCommentData(line)
28
+ // console.log({ key, focusString, data })
29
30
const Component = annotationsMap[key!]
31
@@ -51,7 +52,7 @@ export function extractAnnotationsFromCode(code: Code) {
51
52
53
function getCommentData(line: Code["lines"][0]) {
54
const comment = line.tokens.find(t =>
- t.content.startsWith("//")
55
+ t.content.trim().startsWith("//")
56
)?.content
57
58
if (!comment) {
0 commit comments