Skip to content

Commit

Permalink
feat(build): support code highlight in uppercase (#1082)
Browse files Browse the repository at this point in the history
fixes #772

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
xinconan and brc-dd committed Jul 28, 2022
1 parent 19bf6cb commit 867f305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/highlight.ts
Expand Up @@ -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
Expand Down

0 comments on commit 867f305

Please sign in to comment.