mirror of https://github.com/status-im/codimd.git
Allow specifying option for graphviz
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
parent
24de5a54c9
commit
cfbae54ef8
|
@ -368,9 +368,10 @@ export function finishView (view) {
|
|||
graphvizs.each(function (key, value) {
|
||||
try {
|
||||
var $value = $(value)
|
||||
const options = deserializeParamAttributeFromElement(value)
|
||||
var $ele = $(value).parent().parent()
|
||||
$value.unwrap()
|
||||
viz.renderString($value.text())
|
||||
viz.renderString($value.text(), options)
|
||||
.then(graphviz => {
|
||||
if (!graphviz) throw Error('viz.js output empty graph')
|
||||
$value.html(graphviz)
|
||||
|
|
Loading…
Reference in New Issue