{{- $attributes := partial "docs/text/mapper" (dict "attributes" (cond .IsNamedParams .Params dict) "merge" (dict "class" "mermaid" ) ) -}}
  {{- .Inner | htmlEscape | safeHTML -}}
{{- if not (.Page.Store.Get "mermaid") -}} {{- /* Include mermaid only first time */ -}} {{- with resources.Get "mermaid.json" | minify -}} {{- end -}} {{- .Page.Store.Set "mermaid" true -}} {{- end -}}