0.3.0 • Published 3 years ago

@renovamen/vuepress-plugin-mermaid v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

@renovamen/vuepress-plugin-mermaid@next

Plugin @renovamen/vuepress-plugin-mermaid@next for adding Mermaid to VuePress 2 to create complex diagrams in Markdown.

Demo

 

Install

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

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 mermaidjs, 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