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 f2d5b6f commit d9f9c5bCopy full SHA for d9f9c5b
assets/js/application.js
@@ -792,6 +792,7 @@ var Graphviz = {
792
graphAttributes: {
793
bgcolor: "transparent",
794
},
795
+ engine: x.getAttribute("engine") || "dot",
796
}
797
const svg = vizInstance.renderString(x.innerText, options)
798
const img = document.createElement('img')
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