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") }}
|
||||
<!-- Include mermaid only first time -->
|
||||
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
||||
<script>
|
||||
mermaid.initialize({
|
||||
flowchart: { useMaxWidth:true }
|
||||
});
|
||||
</script>
|
||||
{{ .Page.Scratch.Set "mermaid" true }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue