Project migrated t:https://github.com/liushilive/gitbook-plugin-books
Plugin for GitBook 3 which renders Mermaid diagrams and flow charts detected in the book markdown.
npm install -g mermaid.cli
And use it for your book with in the book.json:
{
"plugins": ["mermaid-flow"]
}
Just put the code into fenced code block and tag it mermaid key word like this:
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```