mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
mermaid: revert destroyed HTML structure #95
This commit is contained in:
parent
63dccef035
commit
139c587757
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
|
{{- $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
<script>
|
||||||
>
|
|
||||||
if (typeof mermaid != 'undefined') {
|
if (typeof mermaid != 'undefined') {
|
||||||
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
|
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue