pull/4718/head
Divyansh Singh 3 weeks ago
parent d09a886119
commit 5900b160e1

@ -3,7 +3,7 @@ import {
transformerNotationDiff,
transformerNotationErrorLevel,
transformerNotationFocus,
transformerNotationHighlight,
transformerNotationHighlight
} from '@shikijs/transformers'
import { customAlphabet } from 'nanoid'
import c from 'picocolors'

@ -44,7 +44,7 @@ export const highlightLinePlugin = (md: MarkdownItAsync) => {
token.info += '{' + lines + '}'
// ensure there is a space between the lang and the line numbers
token.info = token.info.replace(/(?<![=])\{/g, " {")
token.info = token.info.replace(/(?<!=)\{/g, ' {')
return fence(...args)
}
}

Loading…
Cancel
Save