Skip to content

Commit

Permalink
upgrade to mermaid v10 onweru#108
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru authored and hupfdule committed May 26, 2023
1 parent 457bcc0 commit c34b91d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
10 changes: 3 additions & 7 deletions layouts/partials/scripts/other.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@

{{ if in .Plain "mermaid" }}
<script defer src={{ absURL "js/mermaid.min.js" }}></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
mermaid.initialize({
flowchart: { useMaxWidth: true }
});
});
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{{ end }}
31 changes: 0 additions & 31 deletions static/js/mermaid.min.js

This file was deleted.

0 comments on commit c34b91d

Please sign in to comment.