We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0dadd7 commit 139e443Copy full SHA for 139e443
layouts/_default/baseof.html
@@ -202,6 +202,7 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
202
graphAttributes: {
203
bgcolor: "transparent",
204
},
205
+ engine: x.getAttribute("engine") || "dot",
206
}
207
const svg = vizInstance.renderSVGElement(x.innerText, options)
208
svg.classList.add("graphviz")
layouts/shortcodes/graphviz.html
@@ -1,4 +1,4 @@
1
-<pre class="graphviz">
+<pre class="graphviz"{{ if (ne "" (.Get "engine")) }} engine="{{(.Get "engine")}}"{{ end }}>
2
{{ .Inner | htmlEscape | safeHTML }}
3
</pre>
4
{{ .Page.Store.Set "hasGraphviz" true }}
0 commit comments