mermaid
mermaid copied to clipboard
Support subgraph without title in flowchart
Is your feature request related to a problem? Please describe. Sometimes I use subgraph to group a batch of nodes, I do not want to give it a title.
Describe the solution you'd like
Currently, I can write a subgraph as following
subgraph id [title]
So is it possible to set empty title by empty brackets?
Describe alternatives you've considered None
Additional context
As far I know, this should work ... try
subgraph identifier[" "]
a --> b
end
flowchart TB
a --> b
subgraph id[" "]
b --> c & d & e
end
It works, tks
@copperybean close issue #3000
As far I know, this should work ... try
subgraph identifier[" "] a --> b end
flowchart TB a --> b subgraph id[" "] b --> c & d & e end
Doesn't work for multiple subgraphs. Alternatively, you can use  
instead of identifier[" "]
, but neither option supports multiple subgraphs.
As far I know, this should work ... try
subgraph identifier[" "] a --> b end
flowchart TB a --> b subgraph id[" "] b --> c & d & e end
flowchart TB
a --> b subgraph id[" "] b --> c & d & e end
Doesn't work for multiple subgraphs. Alternatively, you can use
 
instead ofidentifier[" "]
, but neither option supports multiple subgraphs.
You can use " "
, " "
, " "
, and so on.