add mermaidjs to the index page

main
Andrew Coleman 2023-02-03 16:47:03 -05:00
parent c9d314827d
commit 4c7304b241
1 changed files with 10 additions and 0 deletions

View File

@ -149,4 +149,14 @@
items.forEach(item => observer.observe(item));
</script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
<script nomodule src="https://unpkg.com/browse/mermaid@9.3.0/dist/mermaid.min.js"></script>
<script nomodule>
mermaid.initialize({ startOnLoad: true });
</script>
</html>