d2
d2 copied to clipboard
embed D2 script as metadata in SVG and PNG exports
we can encode it in, and then editors can decode it and do cool stuff like https://github.com/terrastruct/d2-vscode/issues/26
@alixander this would be wonderful! Is there a best-practice way for embedding code inside SVG? Add as a structured comment?