diff --git a/src/components/DocumentView/CodeBlock/highlight.ts b/src/components/DocumentView/CodeBlock/highlight.ts index 7c1a6ff15..fe46edda5 100644 --- a/src/components/DocumentView/CodeBlock/highlight.ts +++ b/src/components/DocumentView/CodeBlock/highlight.ts @@ -329,7 +329,7 @@ const loadHighlighter = singleton(async () => { const loadLanguagesMutex = asyncMutexFunction(); async function loadHighlighterLanguage( highlighter: HighlighterCore, - lang: keyof typeof bundledLanguages, + lang: string, ) { await loadLanguagesMutex.runBlocking(async () => { if (highlighter.getLoadedLanguages().includes(lang)) {