shikiCodeblocks: transform lang to lower case to avoid failing detection (#1990)
This commit is contained in:
parent
3ea6a96715
commit
c080a0eaac
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ export default definePlugin({
|
|||
createHighlighter,
|
||||
renderHighlighter: ({ lang, content }: { lang: string; content: string; }) => {
|
||||
return createHighlighter({
|
||||
lang,
|
||||
lang: lang?.toLowerCase(),
|
||||
content,
|
||||
isPreview: false,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue