2019-05-23 16:30:26 +02:00
|
|
|
{{ if not (.Page.Scratch.Get "mermaid") }}
|
|
|
|
<!-- Include mermaid only first time -->
|
2019-05-23 17:48:30 +02:00
|
|
|
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
2020-03-30 17:59:14 +02:00
|
|
|
<script>
|
|
|
|
mermaid.initialize({
|
|
|
|
flowchart: { useMaxWidth:true }
|
|
|
|
});
|
|
|
|
</script>
|
2019-05-23 16:30:26 +02:00
|
|
|
{{ .Page.Scratch.Set "mermaid" true }}
|
|
|
|
{{ end }}
|
|
|
|
|
2019-06-11 13:40:50 +02:00
|
|
|
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
|
2019-12-01 14:54:37 +01:00
|
|
|
{{- .Inner -}}
|
2019-05-23 16:30:26 +02:00
|
|
|
</p>
|