Even when setting the YAML header to:
d2:
format: svg
layout: elk
theme: "GrapeSoda"
Commenting out this line doesnt work (an error is thrown):
-- Set the default format to pdf since svg is not supported in PDF output
if options.format == D2Format.svg and quarto.doc.is_format("latex") then
options.format = D2Format.pdf
end
So I dont know how to fix it, maybe someone can help