mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
fix(highlightjs): loading all supported languages at once
This commit is contained in:
@@ -24,7 +24,7 @@ export async function ensureMimeTypes(mimeTypes: MimeType[]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const language = (await loader).default;
|
||||
const language = (await loader()).default;
|
||||
hljs.registerLanguage(mime, language);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user