Fix mermaid scaling for flowchart

This commit is contained in:
Alex Shpak 2020-03-30 17:59:14 +02:00
parent 3011d3351d
commit 831e570f16

View file

@ -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 }}