{{ if not (.Page.Store.Get "mermaidLoaded") }}
  <script src="{{ "js/mermaid.min.js" | relURL }}" defer></script>
  <script src="{{ "js/init-mermaid-umd.js" | relURL }}" defer></script>
  {{ .Page.Store.Set "mermaidLoaded" true }}
{{ end }}

<div class="mermaid">{{- .Inner -}}</div>

