3 ms·
So far, for our diagraming needs we've used MermaidJS, embedded as code blocks into our Markdown documentation (github and mdbook for us, but support is pretty
by wongarsu 4y ago
So far, for our diagraming needs we've used MermaidJS, embedded as code blocks into our Markdown documentation (github and mdbook for us, but support is pretty wide).
D2 seems like a nice upgrade:
- it has an even more intuitive syntax (which is really important for something used on-and-off by any individual developer).
- it seems to have better graph routing
However there are two things keeping us from trying it:
- not supported in our tools, most notably no mdbook plugin yet. I imagine this will change over time
- readability: node labels are tiny compared to nodes, meaning you have to zoom in much more and lose view of the larger structure
- alixanderwang 4y agothank you! Re support: yeah it's a long queue we're making our way through. We have VSCode, Vim, Obsidian, about to roll out Slack, Discord, working on Github, etc. Somewhere down the line, mdbook will be on the chopping block. (community has also contributed plugins for TreeSitter and Emacs) Re node labels. Yeah this has come up a few times now. We'll have something that addresses it in the next release. For now, you can change font-size: https://play.d2lang.com/?script=cspPUtC1U3DMyUxOtVKo5lJQAPvXSiEjtVKRS0EBHjhWCqamXLVcgAAAAP__&layout=elk&theme=0 https://play.d2lang.com/?script=cspPUtC1U3DMyUxOtVKo5lJQAPvX...
- darkteflon 4y agoHi there, I’ve been following the Obsidian plugin development and noticed that it appears to be done but not yet listed in the Community Plugins? Is it likely to be available soon, do you know?
- alixanderwang 4y agoit's been in their open PRs for like 3 weeks now: https://github.com/obsidianmd/obsidian-releases/pull/1389 https://github.com/obsidianmd/obsidian-releases/pull/1389. Maybe they just have all hands on deck for that launch they did today. Hopefully soon!
- alixanderwang 4y agolooks like someone saw this and made an mdbooks plugin: https://github.com/danieleades/mdbook-d2 https://github.com/danieleades/mdbook-d2