0.2.4 • Published 4 years ago

@zemnmez/remark-mermaid v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 (!):

example.svg

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