Notoriously Psychedelic Modules

    vuepress-plugin-default-theme-mermaid

    0.1.0 • Public • Published

    vuepress-plugin-default-theme-mermaid

    Vuepress V2 plugin

    This plugin allows you to write mermaid.js diagrams in your markdown like so

    journey
        title My working day
        section Go to work
          Make tea: : Me
          Go upstairs: 3: Me
          Do work: 1: Me, Cat
        section Go home
          Go downstairs: 5: Me
          Sit down: 5: Me
    

    and have it rendered on the client side. The plugin will change the theme of your diagrams based your vuepress theme. This is accomplished by watching for the dark class on the root html element. This is how the default vuepress theme swaps back and forth, but any other theme that uses a similar method should also work.

    Install

    npm i vuepress-plugin-default-theme-mermaid

    DownloadsWeekly Downloads

    24

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.55 kB

    Total Files

    5

    Last publish

    Collaborators

    • jcloud