shikiCodeblocks: transform lang to lower case to avoid failing detection (#1990)

This commit is contained in:
Thoth 2023-11-15 12:09:26 -06:00 committed by GitHub
parent 3ea6a96715
commit c080a0eaac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ export default definePlugin({
createHighlighter, createHighlighter,
renderHighlighter: ({ lang, content }: { lang: string; content: string; }) => { renderHighlighter: ({ lang, content }: { lang: string; content: string; }) => {
return createHighlighter({ return createHighlighter({
lang, lang: lang?.toLowerCase(),
content, content,
isPreview: false, isPreview: false,
}); });