Skip to content

Commit

Permalink
#3192 Adding docs and visual test
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Feb 20, 2023
1 parent 3a71618 commit b6cac3a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cypress/integration/rendering/flowchart-v2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,17 @@ title: Simple flowchart
---
flowchart TD
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 }
);
Expand Down
9 changes: 9 additions & 0 deletions packages/mermaid/src/docs/syntax/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ flowchart LR
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

It is possible declare many links in the same line as per below:
Expand Down

0 comments on commit b6cac3a

Please sign in to comment.