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 85de72d commit 5365969Copy full SHA for 5365969
assets/js/application.js
@@ -791,6 +791,7 @@ var Graphviz = {
791
graphAttributes: {
792
bgcolor: "transparent",
793
},
794
+ engine: x.getAttribute("engine") || "dot",
795
}
796
const svg = vizInstance.renderSVGElement(x.innerText, options)
797
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