fix(#3406, #3394): Remove init & initThrowsErrors

New run function added as replacement.
This commit is contained in:
Sidharth Vinod
2023-02-19 16:10:08 +05:30
parent 57fd3e586a
commit 4ea7294eeb
11 changed files with 215 additions and 126 deletions

View File

@@ -11,7 +11,8 @@
<script type="module">
import mermaid from './mermaid.esm.mjs';
await mermaid.init({ startOnLoad: false });
await mermaid.initialize({ startOnLoad: false });
await mermaid.run();
await mermaid.mermaidAPI.initialize({ securityLevel: 'strict' });
try {