安装graphviz

VS-Code扩展

使用PlantUML

vim foo.md

content

1
2
3
4
5
6
7
8
@startuml

[First component]
[Another component] as Comp2  
component Comp3
component [Last\ncomponent] as Comp4

@enduml

vs code 快捷键

alt+d

https://www.jianshu.com/p/ed0e979657f4

活动图

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
@startuml
start

if (foo?) then (yes)
  :process0;
else (no)
  :process1;
endif

stop
@enduml