pajachiet / vuepress-plugin-mermaidjs

Vuepress plugin for mermaid.js diagrams

Home Page:https://vuepress-plugin-mermaidjs.efrane.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm version

VuePress Plugin for mermaid.js

Use mermaid.js Diagrams in VuePress

This VuePress plugin provides a global component wrapping mermaid.js. The plugin is designed to work with VuePress v1.x.

Installation

You can install it with

yarn add -D vuepress-plugin-mermaidjs

or

npm install --save-dev vuepress-plugin-mermaidjs

Then you just need to register the plugin in your .vuepress/config.js:

module.exports = {
    // ...
    plugins: [
        'vuepress-plugin-mermaidjs'
    ]
    // ...
}

Usage

The recommended usage is to place your mermaidjs diagrams inside a fenced code block with the language 'mermaid':

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

More on the usage and other documentation may be found at vuepress-plugin-mermaidjs.efrane.com.

About

Vuepress plugin for mermaid.js diagrams

https://vuepress-plugin-mermaidjs.efrane.com


Languages

Language:JavaScript 100.0%