0.4.2 • Published 11 months ago

@beoe/rehype-mermaid v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@beoe/rehype-mermaid

Rehype plugin to generate Mermaid diagrams in place of code fences. This:

```mermaid
flowchart LR
  start --> stop
```

will be converted to

<figure class="beoe mermaid">
  <svg>...</svg>
</figure>

which can look like this:

flowchart LR
  start --> stop

Usage

import rehypeMermaid from "@beoe/rehype-mermaid";

const html = await unified()
  .use(remarkParse)
  .use(remarkRehype)
  .use(rehypeMermaid)
  .use(rehypeStringify)
  .process(`markdown`);

Online documentation provides more details.

0.1.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.4.1

11 months ago

0.4.0

11 months ago

0.4.2

11 months ago

0.0.2

1 year ago

0.0.1

2 years ago