1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

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 Luna
parent 0906e4a3f1
commit dd818fab09

View file

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