#3192 Adding docs and visual test

This commit is contained in:
Knut Sveidqvist 2023-02-20 11:19:23 +01:00
parent 3a71618a49
commit b6cac3a431
2 changed files with 20 additions and 0 deletions

View File

@ -670,6 +670,17 @@ title: Simple flowchart
--- ---
flowchart TD flowchart TD
A --> B A --> B
`,
{ titleTopMargin: 0 }
);
});
it('3192: It should be possieble to render flowcharts with invisisble edges', () => {
imgSnapshotTest(
`---
title: Simple flowchart with invisisble edges
---
flowchart TD
A ~~~ B
`, `,
{ titleTopMargin: 0 } { titleTopMargin: 0 }
); );

View File

@ -245,6 +245,15 @@ flowchart LR
A == text ==> B A == text ==> B
``` ```
### An invisisble link
This can be a usefull tool in some instances where you want to alter the default positining of a node.
```mermaid-example
flowchart LR
A ~~~ B
```
### Chaining of links ### Chaining of links
It is possible declare many links in the same line as per below: It is possible declare many links in the same line as per below: