3 ms·
D2 has been around for a while (and has been posted here before) but still surprisingly unknown. It's so much better than mermaid – giving them a boost with thi
by benzguo 1y ago
D2 has been around for a while (and has been posted here before) but still surprisingly unknown. It's so much better than mermaid – giving them a boost with this post!
- 0x696C6961 1y agoI like d2 better than mermaid, but mermaid is natively supported in so many places making it the pragmatic choice.
- benzguo 1y agotrue, unfortunately not supported in most markdown renderers... generally i've chosen d2 when i want a more intricate/custom diagram
- kitd 1y agoMermaid is supported in Github Markdown though. That's a pretty large market by itself.
- tretiy3 1y agolast time i was installing mermaid with npm, noted that installation lasts too long. i checked and found that it is installing headless chrome under the hood...
- liqilin1567 1y agoI didn't know about D2. Mind sharing features that are better than mermaid?
- Taikonerd 1y agoI'm not the OP, but the reason I started using D2 as opposed to Mermaid is that D2 supports animations: https://d2lang.com/tour/composition/ https://d2lang.com/tour/composition/ In other words, you can have one D2 file that generates `step1.png,` `step2.png`, and `step3.png`. Useful for PowerPoint presentations!
- liqilin1567 1y agoThanks, animation is really an impressive feature.