Re:Mermaid: Create diagrams and visualizations using text an...
by macgyverismo on Thursday May 05, 2022 @10:48AM
(#31274072)
earnest question; why would I use this instead of graphviz?
[ Parent
| on HN ]
Re:Mermaid: Create diagrams and visualizations using text an...
by scrapheap on Thursday May 05, 2022 @11:07AM
(#31274324)
I've used Graphviz for a long time and is still my first port of call where I need to produce the graph as a SVG or PNG.
However, if I'm putting the graph into a project in GitHub/GitLab then I'll use Mermaid as it lets me keep it inline in the markdown file itself. It's also makes it easier for other team members to maintain that graph in the documentation as it doesn't require them to run additional tooling.
Re:Mermaid: Create diagrams and visualizations using text an...
by mdaniel on Thursday May 05, 2022 @10:56AM
(#31274177)
It's the markup language supported by GitLab MR and Wiki; that was my first contact with it: https://docs.gitlab.com/ee/user/markdown.html#mermaid
According to a top-level comment, GitHub also supports it, too, now: https://docs.github.com/en/get-started/writing-on-github/wor...
Re:Mermaid: Create diagrams and visualizations using text an...
by bzxcvbn on Thursday May 05, 2022 @11:05AM
(#31274304)
The syntax is much simpler (albeit less powerful). It's suited to include in a markdown document where you don't know if the recipient is able to parse mermaid diagrams and ensure they get something readable.
Re:Mermaid: Create diagrams and visualizations using text an...
by sverweij on Thursday May 05, 2022 @01:25PM
(#31276162)
mermaid (and similar diagrams-as-text tools) have a higher level of abstraction so they're quicker when you need something they're targeting.
Also: graphviz is good at graphs, but not every visual representation is a graph (e.g. sequence diagrams, railroad diagrams, gantt charts).