simov / markdown-viewer

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

Mermaid and diagram support #57

Closed invisement-old closed 3 years ago

invisement-old commented 6 years ago

Hi, Thanks for awesome extension. I was wondering how this extension can render mermaid (and other) diagrams, if possible at all. If not, would you add this feature to your development process.

Thank you Ali

simov commented 6 years ago

Can you give me a link to it. I'll take a look.

ValentinG0 commented 5 years ago

The Mermaid repository: https://github.com/knsv/mermaid

lonnywong commented 5 years ago

https://mermaidjs.github.io/usage.html

simov commented 5 years ago

Thanks all, I'm yet to look at it, but I can assure you that it's on my TODO list :+1:

RCVarley commented 5 years ago

I don't know how much of this is transferable, but this vscode plugin (https://github.com/mjbvz/vscode-markdown-mermaid) adds mermaid support to the built in markdown preview feature.

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
```