markdown支持用plantuml画uml图,极为方便且美观
目录#
需要#
- Java环境(PlantUML需要java环境)
- VSCode (不必多说)
- VSCode插件
- Graphviz软件(PlantUML的图形预览)
安装#
- 安装java
- VSCode商店安装如下插件:
- Markdown Preview Enhanced
- Markdown All In One
- PlantUml
- 安装Graphviz软件
- 下载Graphviz windows版
- 安装时注意选中 Add Graphviz to the system PATH for all users,若未选中自己配置下环境变量
使用#
plantuml官网有详细教程
示例
1
2
3
4
5
6
7@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml