mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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" }}
|
||||
{{- with $context }}
|
||||
<div class="mermaid" align="{{ $align }}">
|
||||
{{- $content | safeHTML -}}
|
||||
{{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
|
||||
</div>
|
||||
{{- .Page.Store.Set "hasMermaid" true }}
|
||||
{{- end }}
|
Loading…
Reference in a new issue