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 <[email protected]>
  • Loading branch information
xinconan and brc-dd authored 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
Original file line number Diff line number Diff line change
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.