Skip to content

morlay/gitbook-plugin-mermaid-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mermaid plugin for GitBook

Plugin for GitBook which renders Mermaid diagrams and flow charts detected in the book markdown.

How to install it?

You can use install via NPM:

$ npm install gitbook-plugin-mermaid-2

And use it for your book with in the book.json:

{
    "plugins": ["mermaid-2"],
    "pluginsConfig": {
      "mermaid-2": {
         "theme": "forest" // here to change the mermaid theme
      }
    }
}

How to use it?

Just put the code into fenced code block and tag it mermaid key word like this:

graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
Loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published