1. mermaid

2. 安装

$ npm install mermaid -g

3. 使用

3.1. mermaid CLI

http://knsv.github.io/mermaid/ 搜索mermaid CLI

先安装phantomjs

$ npm install -g phantomjs@1.9

生成图片

$ mermaid test.mmd

3.2. code

http://knsv.github.io/mermaid/ 搜索Flowcharts - Basic Syntax

3.2.1. Test

{% mermaid src="Resource/test.mmd" %}
{% endmermaid %}

results matching ""

    No results matching ""