simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.05k stars 133 forks source link

Mermaid support #126

Closed Guzim closed 3 years ago

Guzim commented 4 years ago

Mermaid

Mermaid is a special syntax to draw different types of graphs.
You can find the documentation here : mermaid

I use mermaid to draw graphs and I store my .md on the cloud.

Markdown-viewer

I use Markdown-viewer as a Chrome extension. It permits me to see the .md files in my browser when I open such a file either localy or in the cloud.

Request

Is it possible to support mermaid in markdown-viewer ?
I would love to see my graphs when I open a .md file in Chrome browser

simov commented 4 years ago

That would be great, I'm also using Mermaid diagrams from time to time.

wow-yes commented 4 years ago

Such a nice advice. It will be the best tool for markdown. Thanks, simov.

simov commented 3 years ago

Mermaid diagrams are now supported in v4.0, note that you have to wrap your diagrams in fenced code blocks:

```mermaid
sequenceDiagram
```

or

```mmd
sequenceDiagram
```