diff --git a/layouts/partials/shortcodes/mermaid.html b/layouts/partials/shortcodes/mermaid.html index 561527a55b..0de0d720dc 100644 --- a/layouts/partials/shortcodes/mermaid.html +++ b/layouts/partials/shortcodes/mermaid.html @@ -3,7 +3,7 @@ {{- $align := .align | default "center" }} {{- with $context }}
- {{- $content | safeHTML -}} + {{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
{{- .Page.Store.Set "hasMermaid" true }} {{- end }} \ No newline at end of file