Add support for d2 diagrams #4002
Replies: 4 comments 4 replies
-
Yeah, this would be quite nice. Is there any input from the Quarto team on this? |
Beta Was this translation helpful? Give feedback.
-
I found a relatively new D2 Pandoc filter on GitHub: https://github.com/ram02z/d2-filter It is a TypeScript file–not Lua though so I'm unsure how to convert it into a Quarto extension. |
Beta Was this translation helpful? Give feedback.
-
Maybe https://kroki.io/#support? |
Beta Was this translation helpful? Give feedback.
-
Inspired by the ram02z/d2-filter, I ended up creating a Quarto extension for D2 written completely in Lua: You can define the behaviour using attributes in a .d2 codeblock, but also with global options (because specifying the theme and layout every time can be annoying). Tooltips and links will also work if you use a specific set of settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
d2 is a fairly new, but IMO very appealing diagram language and solution: https://d2lang.com
Would be nice to add support for it in Quarto.
Beta Was this translation helpful? Give feedback.
All reactions