Adding D2 to Hugo
- 2 mins read
I currently use a fork of a theme called poison for this site. It supports mermaid for generating certain visualisations (such as this one)
flowchart LR
A --> B --> C
While mermaid is a fantastic tool, I prefer D2 because I think the syntax is a bit cleaner for certain diagrams and the output by default looks a bit nicer. It also supports more advanced diagrams like SQL tables.