08-27-周三_17-09-29
This commit is contained in:
31
node_modules/gitbook-plugin-mermaid-gb3/README.md
generated
vendored
Normal file
31
node_modules/gitbook-plugin-mermaid-gb3/README.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
## Mermaid plugin for GitBook
|
||||
|
||||
Plugin for [GitBook](https://github.com/GitbookIO/gitbook) 3 which renders [Mermaid](https://github.com/knsv/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-gb3
|
||||
```
|
||||
|
||||
And use it for your book with in the book.json:
|
||||
|
||||
```
|
||||
{
|
||||
"plugins": ["mermaid-gb3"]
|
||||
}
|
||||
```
|
||||
|
||||
### How to use it?
|
||||
|
||||
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;
|
||||
```
|
Reference in New Issue
Block a user