vuepress-plugin-mermaidjs

A Vuepress plugin providing easy MermaidJS diagramming
40,239 75
Install
npm install vuepress-plugin-mermaidjs@1.9.1
Latest Version:1.9.1
License:MIT
Last Updated:Mar 3, 2023
Links: GitHub  ·  npm
Maintainer: efrane

npm version Build Status

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.

Main documentation site is at vuepress-plugin-mermaidjs.efrane.com.

Installation

VuePress 2 Support is currently in beta testing, see below.

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
```

VuePress 2 Support

You can use this plugin with the upcoming (next) release of VuePress aka VuePress 2. To do so, use version 2.0.0-beta.1 or above.

Related Packages

vuepress-plugin-demo-container

Vuepress plugin for demo block.

3,850 119
@vuepress-dumi/vuepress-plugin-dumi-previewer

A dumi style code previewer plugin for VuePress.

36,450 10
@vuepress/plugin-debug

VuePress plugin - debug

3,854 2,833
@vuepress/plugin-nprogress

nprogress plugin for vuepress

3,258,429 22,716
@vuepress/plugin-active-header-links

active-header-links plugin for vuepress

3,218,918 22,716

Version History

Version Released License
1.9.1 MIT
1.9.0 MIT
1.8.1 MIT
1.8.0 MIT
1.7.2 MIT
Pre-releases (2)
Version Released License
2.0.0-beta.2 MIT
2.0.0-beta.1 MIT