Mixing subgraph self-reference with references to inner nodes fails to render #2565
Labels
Close after 30 days
Close issue if no response after 30 days
Status: Awaiting Reply
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Describe the bug
When using subgraphs:
If you mix a self-reference link on the subgraph, with a link to an internal node of the subgraph, the entire graph fails to render.
To Reproduce
This was tested using Mermaidv8.13.5 Live Editor
In the following flowchart definition, 2 lines are commented out.
Uncommenting either renders as expected.
But uncommenting both at the same time fails to render.
Expected behaviour
The expectation is that in the above flowchart, uncommenting both lines should render correctly.
That is with an arrow from
EXT
toA1
And and arrow from subgraph
AA
back to itself.Screenshots
Not needed, reproducible with the live editor.
(The issue also manifests with VS Code Plugin: Markdown Preview Mermaid Support
v1.13.0)
Code Sample
Provided above.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: