update basic.html

This commit is contained in:
Alexander Wang 2025-03-27 12:34:44 -06:00 committed by melsonic
parent 8523641ba8
commit cf488b4429
No known key found for this signature in database
GPG key ID: DFA426742F621CD7

View file

@ -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);