@renovamen/vuepress-plugin-mermaid

    0.2.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:

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

    Install

    npm i @renovamen/vuepress-plugin-mermaid

    DownloadsWeekly Downloads

    23

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    7

    Last publish

    Collaborators

    • renovamen