Merge pull request #2468 from alixander/update-js-examples
update basic.html
This commit is contained in:
commit
0b2203c107
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
|||
const input = document.getElementById("input").value;
|
||||
try {
|
||||
const result = await d2.compile(input);
|
||||
const svg = await d2.render(result.diagram);
|
||||
const svg = await d2.render(result.diagram, result.renderOptions);
|
||||
document.getElementById("output").innerHTML = svg;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue