mermaid: revert destroyed HTML structure #95

This commit is contained in:
Sören Weber 2021-11-03 20:50:35 +01:00
parent 63dccef035
commit 139c587757
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -41,8 +41,7 @@
{{- else }}
{{- $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
{{- end }}
>
<script>
if (typeof mermaid != 'undefined') {
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
}