From a35892da4fe31c9e5d2985b5f4b613aece607e6c Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 15 Aug 2019 08:57:49 +0200 Subject: [PATCH] Fix for issue #895 --- e2e/platform/subgraph.html | 26 ++++-- src/diagrams/flowchart/flowDb.js | 15 +++- src/diagrams/flowchart/parser/flow.jison | 28 +++--- .../flowchart/parser/subgraph.spec.js | 89 ++++++++++++++++++- 4 files changed, 133 insertions(+), 25 deletions(-) diff --git a/e2e/platform/subgraph.html b/e2e/platform/subgraph.html index 5b8ca8c93..e4c8d772e 100644 --- a/e2e/platform/subgraph.html +++ b/e2e/platform/subgraph.html @@ -5,15 +5,29 @@ Mermaid Quick Test Page + -
+
graph TD - A[Christmas] -->|Get money| B(Go shopping) - subgraph 1test["Text"] - A - end -
+ A[Christmas] -->|Get money| B(Go shopping) + subgraph 1test["id starting with number"] + A + end + style 1test fill:#F99,stroke-width:2px,stroke:#F0F +
+
+ graph TD + A[Christmas] -->|Get money| B(Go shopping) + subgraph test["id starting with number"] + A + end + style test fill:#F99,stroke-width:2px,stroke:#F0F +