From 1d5378a4f29cc9b109ad742bf79c39002b66261f Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Mon, 27 Nov 2023 13:19:31 +0530 Subject: [PATCH 1/7] fix: clean comments in text in getDiagramFromText API so flowchart works well --- demos/flowchart.html | 6 +++++- packages/mermaid/src/Diagram.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/demos/flowchart.html b/demos/flowchart.html index d7032a663c..e6fdb6d2b7 100644 --- a/demos/flowchart.html +++ b/demos/flowchart.html @@ -1539,7 +1539,11 @@

flowchart

class I bugged_node
- +
+      flowchart LR
+  %% this is a comment A -- text --> B{node}
+  A -- text --> B -- text2 --> C
+    

Anchor for "link-clicked" test