mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 02:16:23 +00:00
shikiCodeblocks: transform lang to lower case to avoid failing detection (#1990)
This commit is contained in:
parent
0906e4a3f1
commit
dd818fab09
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue