fix(build): update language regex for line number class (#1108)

pull/1109/head
Divyansh Singh 2 years ago committed by GitHub
parent 70b3060be9
commit 708c36183a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ export const lineNumberPlugin = (md: MarkdownIt) => {
const finalCode = rawCode
.replace(/<\/div>$/, `${lineNumbersWrapperCode}</div>`)
.replace(/"(language-\w*)"/, '"$1 line-numbers-mode"')
.replace(/"(language-[-\w]*)"/, '"$1 line-numbers-mode"')
return finalCode
}

Loading…
Cancel
Save