culinary.kemonine.info/themes/hugo-theme-relearn/layouts/partials/shortcodes/mermaid.html

9 lines
302 B
HTML
Raw Normal View History

2022-12-03 15:27:03 +00:00
{{- $context := .context }}
{{- $content := .content }}
{{- $align := .align | default "center" }}
{{- with $context }}
<div class="mermaid align-{{ $align }}">
{{- replaceRE "&#39;" "'" ( replaceRE "&#34;" "\"" ( $content | safeHTML ) ) -}}
</div>
{{- .Page.Store.Set "hasMermaid" true }}
{{- end }}