Fix mermaid scaling for flowchart
This commit is contained in:
parent
3011d3351d
commit
831e570f16
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||||
<!-- Include mermaid only first time -->
|
<!-- Include mermaid only first time -->
|
||||||
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
||||||
|
<script>
|
||||||
|
mermaid.initialize({
|
||||||
|
flowchart: { useMaxWidth:true }
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{{ .Page.Scratch.Set "mermaid" true }}
|
{{ .Page.Scratch.Set "mermaid" true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue