mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
mermaid: remove W3C validator errors #337
escaping of special characters is omitted resulting in illegal content, safeHTML does escape too much, so we revert it partly
This commit is contained in:
parent
5090541ae0
commit
f06fef8d3c
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
{{- $align := .align | default "center" }}
|
{{- $align := .align | default "center" }}
|
||||||
{{- with $context }}
|
{{- with $context }}
|
||||||
<div class="mermaid" align="{{ $align }}">
|
<div class="mermaid" align="{{ $align }}">
|
||||||
{{- $content | safeHTML -}}
|
{{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
|
||||||
</div>
|
</div>
|
||||||
{{- .Page.Store.Set "hasMermaid" true }}
|
{{- .Page.Store.Set "hasMermaid" true }}
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in a new issue