Merge pull request #6989 from mermaid-js/subgraph-td-direction

6338: allow direction TD inside subgraphs
This commit is contained in:
Shubham P
2025-10-13 13:13:46 +00:00
committed by GitHub
4 changed files with 40 additions and 0 deletions

View File

@@ -973,4 +973,19 @@ graph TD
}
);
});
it('70: should render a subgraph with direction TD', () => {
imgSnapshotTest(
`
flowchart LR
subgraph A
direction TD
a --> b
end
`,
{
fontFamily: 'courier',
}
);
});
});