Skip to content

Commit

Permalink
Merge pull request #1571 from hackmdio/feature/graphviz-options
Browse files Browse the repository at this point in the history
  • Loading branch information
jackycute authored Aug 14, 2020
2 parents 24de5a5 + d89caac commit 1465355
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 39 deletions.
74 changes: 37 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"ws": "~7.1.1"
},
"devDependencies": {
"@hackmd/codemirror": "~5.49.5",
"@hackmd/codemirror": "~5.49.8",
"@hackmd/emojify.js": "^2.1.0",
"@hackmd/idle-js": "~1.0.1",
"@hackmd/js-sequence-diagrams": "~0.0.1-alpha.3",
Expand Down
3 changes: 2 additions & 1 deletion public/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1465355

Please sign in to comment.