PlantUML and Mermaid, especially in Markdown .md files

PlantUML and Mermaid, especially in Markdown .md files

2019-05-07. Category & Tags: UML, PlantUML

TL;NR #

  1. 安装 vscode plugins: 1. Mermaid Preview - by Mermaid OSS; 2. Markdown Plantuml Preview - by myml .
  • vscode-mermaid.png
  • vscode-puml.png
  1. 创建 .md , 内容来自 k-means.md · SinoSolomon/diagram-demo - Gitee.com 》 “一键复制”.
  2. vscode 中 Ctrl+Shift+P 》”在侧边栏打开预览“:

vscode-preview-open.png

  1. 预览效果: README.md · SinoSolomon/diagram-demo - Gitee.com.

MERMAID #

Simple to use, not for professional usages.

Selected Plugins/Tools #

PLANT UML (PUML) #

More professional.

Intro #

中文教程(官方网站): plantuml.com/zh

PlantUML is a convinient tool to make diagrams using UML language/format, such as sequence diagrams, use cases, flow diagrams etc.

puml pic-ref

Selected Plugins/Tools #

Alternatives that do NOT require external web services [ref]:

  • for flow/Gantt/sequence diagrams, “Mermaid” is also a good choice.
    • Good:
      • easier/simpler/less than writing puml.
      • real-time online rendering with js.
      • CJK/non-UTF ok.
    • Bad:
      • all symbols should use html codes.
      • not so professional as puml.
      • no professional class diagram
    • Live editors:
      • All basic features, REAL EDITOR! detailed editor MermaidFlow.APP ( link w/o content )
      • All basic features, link w/ content / img: Mermaid.Live, previously: mermaid-js.github.io
      • All features, rich links, md etc.: mermaid-js.github.io beta (site down …)
      • mermaid.d.foundation , red-colored bg, content-link not working, NOT suggested.

Others:

  • yUML is easier to use.