chore(highlightjs): load theme by IDs

This commit is contained in:
Elian Doran
2025-05-18 17:50:31 +03:00
parent 8b11f25f0c
commit 66cbe468f5
5 changed files with 356 additions and 96 deletions

View File

@@ -46,7 +46,10 @@ export function highlight(code: string, options: HighlightOptions) {
}
export async function loadTheme(theme: Theme) {
console.log("Got", theme.default);
console.log("Got theme", theme);
const loadedTheme = await theme.load();
console.log("Got", loadedTheme.default);
}
export const { highlightAuto } = hljs;