added mermaid samples to demo document

This commit is contained in:
zadam
2021-09-30 13:17:37 +02:00
parent a68fd5ab83
commit 291b434d70
5 changed files with 15 additions and 34 deletions

View File

@@ -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);