Skip to content

Commit 5068b26

Browse files
authored
fix(transformers): support comment-prefixed [code . highlight] markers in v3 notation matcher (#1102)
1 parent 8806b30 commit 5068b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/transformers/src/transformers/notation-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function transformerNotationMap(
2525

2626
return createCommentNotationTransformer(
2727
name,
28-
new RegExp(`\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join('|')})(:\\d+)?\\]`),
28+
new RegExp(`#?\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join('|')})(:\\d+)?\\]`, 'gi'),
2929
function ([_, match, range = ':1'], _line, _comment, lines, index) {
3030
const lineNum = Number.parseInt(range.slice(1), 10)
3131

0 commit comments

Comments
 (0)