我在markdown中使用美人鱼。我无法弄清楚如何连接子图。
鉴于下面的程序,我需要能够用箭头连接一个和两个。
- ```mermaid
graph LR;
subgraph one
main---MainMenu
MainMenu((MainMenu))---Game
Game---Level
Game---Player
end
subgraph two
Screen
end
one-->two
```
答案 0 :(得分:2)
据我所知,只能连接节点,所以您可以这样做:
main-->Screen
答案 1 :(得分:0)
现在,测试版允许您连接子图:
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
https://mermaid-js.github.io/mermaid/#/flowchart?id=beta-flowcharts