feat(build): support code highlight in uppercase (#1082)

fixes #772

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/1087/head
xinconan 2 years ago committed by GitHub
parent 19bf6cbb8d
commit 867f305886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ export async function highlight(theme: ThemeOptions = 'material-palenight') {
return (str: string, lang: string) => {
const vPre = vueRE.test(lang) ? '' : 'v-pre'
lang = lang.replace(vueRE, '')
lang = lang.replace(vueRE, '').toLowerCase()
if (hasSingleTheme) {
return highlighter

Loading…
Cancel
Save