@alt-point/vitepress-plugin-mermaid
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

vitepress-plugin-mermaid

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

Install

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

// or 

yarn add -D @alt-point/vitepress-plugin-mermaid mermaid @mermaid-js/mermaid-mindmap

Setup it up

Add wrapper

// .vitepress/config.js
import { withMermaid } from '@alt-point/vitepress-plugin-mermaid'

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

Use in any Markdown file

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

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

Readme

Keywords

Package Sidebar

Install

npm i @alt-point/vitepress-plugin-mermaid

Weekly Downloads

3

Version

2.1.2

License

MIT

Unpacked Size

11.1 kB

Total Files

7

Last publish

Collaborators

  • evil_dwarf
  • vladismus
  • surrealistik