@zemnmez/remark-mermaid
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @zemnmez/remark-mermaid

Weekly Downloads

2

Version

0.2.4

License

MIT

Unpacked Size

36.1 kB

Total Files

13

Last publish

Collaborators

  • zemnmez