mermaid for gitbook.
You can install via npm:
$ npm install https://github.com/hypc/gitbook-plugin-mermaid.git
And use it for your book with the book.json
:
{
"plugins": [{
"name": "mermaid",
"version": "git+https://github.com/hypc/gitbook-plugin-mermaid.git"
}]
}
You can use it like this:
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
And you can get more synax in here.