cullmann.io/themes/CodeIT/layouts/shortcodes/mermaid.html

4 lines
198 B
HTML
Raw Normal View History

2021-02-18 21:44:01 +01:00
{{- $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 -}}