Skip to content

Commit

Permalink
Update mermaid (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Apr 25, 2023
1 parent 51e9341 commit e3516b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@
{{ end -}}

{{- if .HasShortcode "mermaid" }}
<script async src="https://unpkg.com/mermaid@9.4.3/dist/mermaid.min.js"></script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10.1.0/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{{ end -}}

0 comments on commit e3516b2

Please sign in to comment.