cullmann.io/themes/beautifulhugo/layouts/shortcodes/mermaid.html

8 lines
313 B
HTML
Raw Normal View History

2019-08-03 22:26:50 +02:00
<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>