{{- $scratch := .Page.Scratch.Get "scratch" -}}

{{- $id := partial "function/id.html" (dict "content" (trim .Inner "\n") "scratch" $scratch) -}}
<div class="mermaid" id="{{ $id }}"></div>
{{- slice $id | $scratch.Add "mermaidArr" -}}
