mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
9 lines
333 B
HTML
9 lines
333 B
HTML
|
{{ if .Page.Params.mermaid -}}
|
||
|
<div class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
|
||
|
{{ $data := replaceRE "(^\\s+```)" "" .Inner -}}
|
||
|
{{ replaceRE "(```\\s+$)" "" $data -}}
|
||
|
</div>
|
||
|
{{ else -}}
|
||
|
{{ errorf "Failed to process mermaid shortcode: %s. Set mermaid to true in page front matter." .Position }}
|
||
|
{{ end -}}
|