From 7facc8f50dcebee8a92f9c80c400ad4a77469af2 Mon Sep 17 00:00:00 2001 From: nour kouider Date: Fri, 4 Apr 2025 19:02:55 +0100 Subject: [PATCH] docs: fix edge ID example and regenerate flowchart output --- docs/syntax/flowchart.md | 12 ++++++------ packages/mermaid/src/docs/syntax/flowchart.md | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index 40ee2ef63..bfdda3710 100644 --- a/docs/syntax/flowchart.md +++ b/docs/syntax/flowchart.md @@ -1193,12 +1193,12 @@ To give an edge an ID, prepend the edge syntax with the ID followed by an `@` ch ```mermaid-example flowchart LR - A e1@–> B + A e1@–-> B ``` ```mermaid flowchart LR - A e1@–> B + A e1@–-> B ``` In this example, `e1` is the ID of the edge connecting `A` to `B`. You can then use this ID in later definitions or style statements, just like with nodes. @@ -1229,13 +1229,13 @@ In the initial version, two animation speeds are supported: `fast` and `slow`. S ```mermaid-example flowchart LR - A e1@–> B + A e1@–-> B e1@{ animation: fast } ``` ```mermaid flowchart LR - A e1@–> B + A e1@–-> B e1@{ animation: fast } ``` @@ -1247,14 +1247,14 @@ You can also animate edges by assigning a class to them and then defining animat ```mermaid-example flowchart LR - A e1@–> B + A e1@–-> B classDef animate stroke-dasharray: 9,5,stroke-dashoffset: 900,animation: dash 25s linear infinite; class e1 animate ``` ```mermaid flowchart LR - A e1@–> B + A e1@–-> B classDef animate stroke-dasharray: 9,5,stroke-dashoffset: 900,animation: dash 25s linear infinite; class e1 animate ``` diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index 2ddad4795..09637241a 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -721,7 +721,7 @@ To give an edge an ID, prepend the edge syntax with the ID followed by an `@` ch ```mermaid flowchart LR - A e1@–> B + A e1@–-> B ``` In this example, `e1` is the ID of the edge connecting `A` to `B`. You can then use this ID in later definitions or style statements, just like with nodes. @@ -746,7 +746,7 @@ In the initial version, two animation speeds are supported: `fast` and `slow`. S ```mermaid flowchart LR - A e1@–> B + A e1@–-> B e1@{ animation: fast } ``` @@ -758,7 +758,7 @@ You can also animate edges by assigning a class to them and then defining animat ```mermaid flowchart LR - A e1@–> B + A e1@–-> B classDef animate stroke-dasharray: 9,5,stroke-dashoffset: 900,animation: dash 25s linear infinite; class e1 animate ```