mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
chore(highlightjs): load theme by IDs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user