Open BenjaBobs opened 5 years ago
Mermaid is a text-to-diagram library that is very useful for writing up flow charts or class diagrams or what not.
Markdown-it has some plugins that add support for the mermaid tag, e.g.
graph TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[Car]
Renders to this:
Example: https://mermaidjs.github.io/mermaid-live-editor/
A possible implementation: https://www.npmjs.com/package/markdown-it-mermaid
Support for Mermaid would be a Big Deal in this extension for complex projects. Thanks for your consideration.
Mermaid is a text-to-diagram library that is very useful for writing up flow charts or class diagrams or what not.
Markdown-it has some plugins that add support for the mermaid tag, e.g.
Renders to this:![image](https://user-images.githubusercontent.com/8708965/59773934-cb0b7000-92ae-11e9-9545-0e498dc9988c.png)
Example: https://mermaidjs.github.io/mermaid-live-editor/
A possible implementation: https://www.npmjs.com/package/markdown-it-mermaid