mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-05 15:58:48 +08:00
mermaid: revert destroyed HTML structure #95
This commit is contained in:
parent
63dccef035
commit
139c587757
@ -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 } ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user