Skip to content

Commit 6d9fcdf

Browse files
committed
add support for mermaid diagrams
1 parent c3b54d3 commit 6d9fcdf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

layouts/shortcodes/mermaid.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="mermaid">
2+
{{.Inner}}
3+
</div>
4+

themes/docsy/layouts/partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
crossorigin="anonymous"></script>
3232

3333
{{end}}
34+
<script async src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script>
3435
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
3536

3637
{{ partial "hooks/head-end.html" . }}

0 commit comments

Comments
 (0)