@renovamen/vuepress-plugin-mermaid

0.3.0 • Public • Published

@renovamen/vuepress-plugin-mermaid

A plugin for adding Mermaid to VuePress to create complex diagrams in Markdown.

Demo

 

Installation

Install this plugin with:

yarn add @renovamen/vuepress-plugin-mermaid
# or
npm install @renovamen/vuepress-plugin-mermaid

Then add it to your .vuepress/config.js:

module.exports = {
  plugins: [
    [
      '@renovamen/vuepress-plugin-mermaid'
    ]
  ]
}

 

Usage

The token info of the code block should be mermaid, for example:

```mermaidjs
sequenceDiagram
  Alice->John: Hello John, how are you?
  loop Every minute
    John-->Alice: Great!
  end
```

Refer to the documentation of Mermaid for more information.

 

License

MIT

Package Sidebar

Install

npm i @renovamen/vuepress-plugin-mermaid

Weekly Downloads

369

Version

0.3.0

License

MIT

Unpacked Size

4.51 kB

Total Files

7

Last publish

Collaborators

  • renovamen