LoveIt/layouts/shortcodes/mermaid.html
2020-05-18 21:30:33 +08:00

3 lines
198 B
HTML

{{- $id := dict "Content" (trim .Inner "\n") "Scratch" .Page.Scratch | partial "function/id.html" -}}
<div class="mermaid" id="{{ $id }}"></div>
{{- .Page.Scratch.SetInMap "this" "mermaid" true -}}