hugo-theme-relearn/layouts/partials/shortcodes/mermaid.html
2022-06-22 21:41:23 +02:00

9 lines
No EOL
253 B
HTML

{{- $context := .context }}
{{- $content := .content }}
{{- $align := .align | default "center" }}
{{- with $context }}
<div class="mermaid" align="{{ $align }}">
{{- safeHTML $content -}}
</div>
{{- .Page.Store.Set "htmlHasMermaid" true }}
{{- end }}