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 6e89300 commit 37e69c9Copy full SHA for 37e69c9
layouts/_default/baseof.html
@@ -25,6 +25,7 @@
25
graphAttributes: {
26
bgcolor: "transparent",
27
},
28
+ engine: x.getAttribute("engine") || "dot",
29
}
30
const svg = vizInstance.renderString(x.innerText, options)
31
const img = document.createElement('img')
layouts/_markup/render-codeblock-graphviz.html
@@ -1,4 +1,4 @@
1
-<pre class="graphviz">
+<pre class="graphviz"{{ if (and (isset "engine" .Attributes) (ne "" .Attributes.engine)) }} engine="{{ .Attributes.engine }}"{{ end }}>
2
{{- .Inner | htmlEscape | safeHTML -}}
3
</pre>
4
{{- .Page.Store.Set "hasGraphviz" true }}
0 commit comments