2.0.15 • Published 2 years ago

@intevel/vitepress-plugin-mermaid v2.0.15

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

vitepress-plugin-mermaid

Warning mermaid max version is 9.1.0

Add mermaid support for Vitepress. It detects any dark theme that are set in body as long as it has dark in the name

See the docs 📕
and a complex example 😎

Install

npm i vitepress-plugin-mermaid mermaid @mermaid-js/mermaid-mindmap -D

Setup it up

Add wrapper

// .vitepress/config.js
import { withMermaid } from "vitepress-plugin-mermaid";

export default withMermaid({
  // your existing vitepress config...
});

Use in any Markdown file

<!---any-file.md-->

```mermaid
flowchart TD
  Start --> Stop
```
2.0.15

2 years ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.0.10

2 years ago