update basic.html

This commit is contained in:
Alexander Wang 2025-03-27 12:34:44 -06:00
parent 5ad8fb5c00
commit a54f2f66a0
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927

View file

@ -36,7 +36,7 @@
const input = document.getElementById("input").value; const input = document.getElementById("input").value;
try { try {
const result = await d2.compile(input); 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; document.getElementById("output").innerHTML = svg;
} catch (err) { } catch (err) {
console.error(err); console.error(err);