You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://mermaid-js.github.io/mermaid/landing/)
@@ -389,8 +393,12 @@ The above command generates files into the `dist` folder and publishes them to \
389
393
390
394
## Contributors
391
395
396
+
<divclass='badges'>
397
+
392
398
[](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22)[](https://github.com/mermaid-js/mermaid/graphs/contributors)[](https://github.com/mermaid-js/mermaid/graphs/contributors)
393
399
400
+
</div>
401
+
394
402
Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out.
395
403
396
404
Detailed information about how to contribute can be found in the [contribution guide](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
@@ -424,20 +432,14 @@ A quick note from Knut Sveidqvist:
424
432
_Mermaid was created by Knut Sveidqvist for easier documentation._
Copy file name to clipboardExpand all lines: docs/syntax/flowchart.md
+42
Original file line number
Diff line number
Diff line change
@@ -748,6 +748,48 @@ flowchart LR
748
748
B1 --> B2
749
749
```
750
750
751
+
#### Limitation
752
+
753
+
If any of a subgraph's nodes are linked to the outside, subgraph direction will be ignored. Instead the subgraph will inherit the direction of the parent graph:
754
+
755
+
```mermaid-example
756
+
flowchart LR
757
+
subgraph subgraph1
758
+
direction TB
759
+
top1[top] --> bottom1[bottom]
760
+
end
761
+
subgraph subgraph2
762
+
direction TB
763
+
top2[top] --> bottom2[bottom]
764
+
end
765
+
%% ^ These subgraphs are identical, except for the links to them:
766
+
767
+
%% Link *to* subgraph1: subgraph1 direction is mantained
768
+
outside --> subgraph1
769
+
%% Link *within* subgraph2:
770
+
%% subgraph2 inherits the direction of the top-level graph (LR)
771
+
outside ---> top2
772
+
```
773
+
774
+
```mermaid
775
+
flowchart LR
776
+
subgraph subgraph1
777
+
direction TB
778
+
top1[top] --> bottom1[bottom]
779
+
end
780
+
subgraph subgraph2
781
+
direction TB
782
+
top2[top] --> bottom2[bottom]
783
+
end
784
+
%% ^ These subgraphs are identical, except for the links to them:
785
+
786
+
%% Link *to* subgraph1: subgraph1 direction is mantained
787
+
outside --> subgraph1
788
+
%% Link *within* subgraph2:
789
+
%% subgraph2 inherits the direction of the top-level graph (LR)
790
+
outside ---> top2
791
+
```
792
+
751
793
## Markdown Strings
752
794
753
795
The "Markdown Strings" feature enhances flowcharts and mind maps by offering a more versatile string type, which supports text formatting options such as bold and italics, and automatically wraps text within labels.
[](https://mermaid-js.github.io/mermaid/landing/)
@@ -166,8 +170,12 @@ The above command generates files into the `dist` folder and publishes them to <
166
170
167
171
## Contributors
168
172
173
+
<divclass='badges'>
174
+
169
175
[](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22)[](https://github.com/mermaid-js/mermaid/graphs/contributors)[](https://github.com/mermaid-js/mermaid/graphs/contributors)
170
176
177
+
</div>
178
+
171
179
Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out.
172
180
173
181
Detailed information about how to contribute can be found in the [contribution guide](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
@@ -201,20 +209,14 @@ A quick note from Knut Sveidqvist:
201
209
_Mermaid was created by Knut Sveidqvist for easier documentation._
Copy file name to clipboardExpand all lines: packages/mermaid/src/docs/syntax/flowchart.md
+23
Original file line number
Diff line number
Diff line change
@@ -471,6 +471,29 @@ flowchart LR
471
471
B1 --> B2
472
472
```
473
473
474
+
#### Limitation
475
+
476
+
If any of a subgraph's nodes are linked to the outside, subgraph direction will be ignored. Instead the subgraph will inherit the direction of the parent graph:
477
+
478
+
```mermaid-example
479
+
flowchart LR
480
+
subgraph subgraph1
481
+
direction TB
482
+
top1[top] --> bottom1[bottom]
483
+
end
484
+
subgraph subgraph2
485
+
direction TB
486
+
top2[top] --> bottom2[bottom]
487
+
end
488
+
%% ^ These subgraphs are identical, except for the links to them:
489
+
490
+
%% Link *to* subgraph1: subgraph1 direction is mantained
491
+
outside --> subgraph1
492
+
%% Link *within* subgraph2:
493
+
%% subgraph2 inherits the direction of the top-level graph (LR)
494
+
outside ---> top2
495
+
```
496
+
474
497
## Markdown Strings
475
498
476
499
The "Markdown Strings" feature enhances flowcharts and mind maps by offering a more versatile string type, which supports text formatting options such as bold and italics, and automatically wraps text within labels.
0 commit comments