@zemnmez/remark-mermaid
v0.2.4
Published
A remark plugin for Markdown that replaces `mermaid` graphs with rendered SVGs.
Downloads
1
Readme
remark-mermaid
render inline mermaid diagrams! take code blocks like this:
```mermaid file=example.svg name=Example_Diagram
graph TD;
A-->B;
A-->C;
B-->D;
C-->D
```
graph TD;
A-->B;
A-->C;
B-->D;
C-->D
and turn them into this (!):
options
all mermaid blocks that don't have file
and name
are skipped. It's also possible
to specify an alt
tag. I'm not yet sure how I want to handle spaces.
how to use it
honestly i am tired as hell but you can look at src/mermaidRender.spec.ts