"python/vscode:/vscode.git/clone" did not exist on "183d9f969c24790f143f8a7795e3a7f4d678e88d"
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 @@ ...@@ -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();
......
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