From b6cac3a4317feee6369f1f3c78e395accecfe32d Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Mon, 20 Feb 2023 11:19:23 +0100 Subject: [PATCH] #3192 Adding docs and visual test --- cypress/integration/rendering/flowchart-v2.spec.js | 11 +++++++++++ packages/mermaid/src/docs/syntax/flowchart.md | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/cypress/integration/rendering/flowchart-v2.spec.js b/cypress/integration/rendering/flowchart-v2.spec.js index 30ae4f0d25..8debde1b9e 100644 --- a/cypress/integration/rendering/flowchart-v2.spec.js +++ b/cypress/integration/rendering/flowchart-v2.spec.js @@ -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 } ); diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index 5896e05188..6f80d9982f 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -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: