Commit 727a837e authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: render mermaid after edit

parent a3ecf625
......@@ -341,6 +341,17 @@
generatingImage = false;
};
$: if (!edit) {
(async () => {
await tick();
renderStyling();
await mermaid.run({
querySelector: '.mermaid'
});
})();
}
onMount(async () => {
await tick();
renderStyling();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment