From a1cc456f53d3c39a9f088dd09f47c0febf13e1ee Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sun, 29 Apr 2018 08:37:45 +0800 Subject: [PATCH] refine Markdown guide for Graphviz --- changes.md | 2 +- src/resources/docs/markdown_guide_en.md | 6 ++++++ src/resources/docs/markdown_guide_zh.md | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/changes.md b/changes.md index 47096339..daed6225 100644 --- a/changes.md +++ b/changes.md @@ -2,7 +2,7 @@ ## v1.15 - Support **PlantUML** and **Graphviz**; - **In-Place Preview** for MathJax, PlantUML, Graphviz, and Flowchart.js; -- **Live Preview** for diagrams and MathJax via `Ctrl+E I`; +- **Live Preview** for diagrams via `Ctrl+E I`; - Restore cursor position when recovering pages at startup; - UniversalEntry - Ctrl+I to expand/collapse current item; diff --git a/src/resources/docs/markdown_guide_en.md b/src/resources/docs/markdown_guide_en.md index cd6f78c7..6aa23260 100644 --- a/src/resources/docs/markdown_guide_en.md +++ b/src/resources/docs/markdown_guide_en.md @@ -139,6 +139,12 @@ VNote supports [PlantUML](http://plantuml.com/) to draw UML diagrams. You should @enduml ``` +#### Graphviz + +> You need to enable Graphviz in the settings. + +VNote supports [Graphviz](http://www.graphviz.org/) to draw diagrams. You should use `dot` specified as the language of the fenced code block and write the definition of your diagram within it. + ### Math Formulas > You need to enable MathJax in the `Markdown` menu. diff --git a/src/resources/docs/markdown_guide_zh.md b/src/resources/docs/markdown_guide_zh.md index 94fe1cb8..429e8477 100644 --- a/src/resources/docs/markdown_guide_zh.md +++ b/src/resources/docs/markdown_guide_zh.md @@ -140,6 +140,12 @@ VNote支持 [PlantUML](http://plantuml.com/) 来实现UML图表。您需要使 @enduml ``` +#### Graphviz + +> 需要在设置中启用Graphviz。 + +VNote支持 [Graphviz](http://www.graphviz.org/) 来绘制图表。您需要使用代码块,并标明语言为`dot`,然后在代码块里面定义图表。 + ### 数学公式 > 需要在`Markdown`菜单中启用MathJax。