mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
added mermaid samples to demo document
This commit is contained in:
@@ -48,6 +48,8 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
const documentStyle = window.getComputedStyle(document.documentElement);
|
||||
const mermaidTheme = documentStyle.getPropertyValue('--mermaid-theme');
|
||||
|
||||
console.log(mermaidTheme, "mermaidTheme");
|
||||
|
||||
mermaid.mermaidAPI.initialize({ startOnLoad: false, theme: mermaidTheme.trim() });
|
||||
|
||||
const noteComplement = await froca.getNoteComplement(note.noteId);
|
||||
|
||||
Reference in New Issue
Block a user