fix: render mermaid after edit

This commit is contained in:
Timothy J. Baek 2024-06-02 19:08:18 -07:00
parent a3ecf62564
commit 727a837e53

View File

@ -341,6 +341,17 @@
generatingImage = false; generatingImage = false;
}; };
$: if (!edit) {
(async () => {
await tick();
renderStyling();
await mermaid.run({
querySelector: '.mermaid'
});
})();
}
onMount(async () => { onMount(async () => {
await tick(); await tick();
renderStyling(); renderStyling();