LaurentRDC / pandoc-plot

Render and include figures in Pandoc documents using your plotting toolkit of choice
https://laurentrdc.github.io/pandoc-plot/
GNU General Public License v2.0
216 stars 8 forks source link

Support d2 diagrams #57

Closed bugsbugsbux closed 1 year ago

bugsbugsbux commented 1 year ago

Please support d2 diagrams!

To install d2 download the source archive https://github.com/terrastruct/d2/releases/tag/v0.1.1, then run make install inside the extracted folder.

Example script:

x -> y: hello world

compile like so: d2 file.d2 file.svg or cat file.d2 | d2 - 2>/dev/null >file.svg

You can find more examples at https://github.com/terrastruct/d2/tree/master/docs/examples.

kind regards

LaurentRDC commented 1 year ago

Thank you for the suggestion! I don't have much time to devote to this these days, but I'm happy to review pull requests.