blog/themes/beautifulhugo/layouts/shortcodes/mermaid.html

8 lines
313 B
HTML
Raw Normal View History

2022-06-25 08:56:31 +01: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>