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:
Sören Weber 2022-10-07 20:08:12 +02:00
parent 5090541ae0
commit f06fef8d3c
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -3,7 +3,7 @@
{{- $align := .align | default "center" }}
{{- with $context }}
<div class="mermaid" align="{{ $align }}">
{{- $content | safeHTML -}}
{{- replaceRE "&#39;" "'" ( replaceRE "&#34;" "\"" ( $content | safeHTML ) ) -}}
</div>
{{- .Page.Store.Set "hasMermaid" true }}
{{- end }}