mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
9a6e8edacc
remove old-styled alignment
9 lines
No EOL
302 B
HTML
9 lines
No EOL
302 B
HTML
{{- $context := .context }}
|
|
{{- $content := .content }}
|
|
{{- $align := .align | default "center" }}
|
|
{{- with $context }}
|
|
<div class="mermaid align-{{ $align }}">
|
|
{{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
|
|
</div>
|
|
{{- .Page.Store.Set "hasMermaid" true }}
|
|
{{- end }} |