Merge pull request #193 from jankuc/mermaid_support
Added support for mermaid diagrams
This commit is contained in:
commit
c790d0aa71
4 changed files with 581 additions and 0 deletions
7
layouts/shortcodes/mermaid.html
Normal file
7
layouts/shortcodes/mermaid.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<link href="{{"css/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
|
||||
<script defer src="{{"js/mermaid.js" | relURL}}">
|
||||
mermaid.initialize({startOnLoad:true});
|
||||
</script>
|
||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" >
|
||||
{{ safeHTML .Inner }}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue