Live data from Hacker News

Include diagrams in your Markdown files with Mermaid

github.blog

251–260 of 272 posts

Re: Include diagrams in your Markdown files with Mermaid

#252
post #247

The title got truncated ("Create complex diagrams using Markdown-inspired" … syntax, I guess?).

Yes, the original title was

"Mermaid: a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams."

Re: Include diagrams in your Markdown files with Mermaid

#254
post #243

Cooool, this is used on github https://github.blog/2022-02-14-include-diagrams-markdown-fil... Also on Azure DevOps too https://docs.microsoft.com/en-us/azure/devops/project/wiki/w... What a time to be alive! :-)

I hope these companies are sponsoring the maintainer of the project, even though I could not find nothing of the sort in his sponsors tab on github.

Re: Include diagrams in your Markdown files with Mermaid

#255
post #184

Earlier quoted context omitted.

To be fair, I'm not sure "offline readability" is an actual problem anymore. VS Code and (presumably) other IDEs offer a very simple live-preview window for viewing and editing markdown files.

My vanilla vim on ssh begs to differ. Offline readability matters

To you it does but manifestly your use case doesn’t matter to the people writing these pieces of software and these readme files. They care about their audience which want different things than you. At some point you can’t expect the world to cater for you. You have to deal with the annoyances which come with doing things differently or move on with your time.

Re: Include diagrams in your Markdown files with Mermaid

#256

Nice looking framework but it doesn’t seem to support features that would be useful on very large visualizations, such as zoom and zoom windows.

For larger, multiperspective visualizations with zoom, Ilograph may be what you are looking for: https://www.ilograph.com/

Re: Include diagrams in your Markdown files with Mermaid

#257
I was recently evaluating Mermaid for one of my projects but I could not get mermaid-cli to work (one of 3rdparty npm libraries was broken) and I needed a way of automating graph creation.

Does anyone know if there is a decent tool similar to mermaid-cli allowing for command-line based generating PNG or SVG mermaid diagrams, but without having to install bazillion of NPM packages first?

Re: Include diagrams in your Markdown files with Mermaid

#258
post #257

I was recently evaluating Mermaid for one of my projects but I could not get mermaid-cli to work (one of 3rdparty npm libraries was broken) and I needed a way of automating graph creation. Does anyone know if there is a decent tool similar to mermaid-cli allowing for command-line based generating PNG or SVG mermaid diagrams, but without having to install bazillion of NPM packages first?

PlantUML or perhaps a pre-packaged draw.io. (yes, it works offline)

Re: Include diagrams in your Markdown files with Mermaid

#259
Is there any mermaid specification syntax for directly embedding diagrams into a markdown file (like by flagging the start of the diagram with a special title like #### diagramtypename) ?

I was poking around the examples and live editor, and it seemed impossible to do except with an image link, which is rather more cumbersome.

Post reply on HN