LoveIt/layouts/shortcodes/mermaid.html

4 lines
219 B
HTML

<!-- shuffle md5 as id -->
{{- $id := delimit (split (md5 .Inner) "" | shuffle) "" | printf "mermaid-%s" -}}
<div class="mermaid" id="{{ $id }}"></div>
{{- .Page.Scratch.SetInMap "mermaidMap" $id (trim .Inner "\n") -}}