From 7a5149e39eede6965e61c5a5ab061090dcd86b57 Mon Sep 17 00:00:00 2001 From: Lindsey Wild Date: Wed, 6 Apr 2022 16:06:57 -0400 Subject: [PATCH 1/2] feat: adds title and description to flowchart --- README.md | 4 +++ demos/flowchart.html | 8 +++-- demos/index.html | 2 +- src/diagrams/flowchart/flowDb.js | 22 ++++++++++++ src/diagrams/flowchart/flowRenderer-v2.js | 10 ++++-- src/diagrams/flowchart/flowRenderer.js | 8 +++-- src/diagrams/flowchart/parser/flow.jison | 8 +++++ src/diagrams/flowchart/parser/flow.spec.js | 42 +++++++++++++++------- 8 files changed, 82 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 0eb5340914..cbf50713b9 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ __The following are some examples of the diagrams, charts and graphs that can be ``` flowchart LR +title Example flow chart +accDescripton Flow chart showing examples of node usage A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] @@ -47,6 +49,8 @@ C -->|Two| E[Result 2] ``` ```mermaid flowchart LR +title Example flow chart +accDescripton Flow chart showing examples of node usage A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] diff --git a/demos/flowchart.html b/demos/flowchart.html index 864fac6877..47a9c520f5 100644 --- a/demos/flowchart.html +++ b/demos/flowchart.html @@ -3,7 +3,7 @@ - Mermaid Quick Test Page + Mermaid Quick Flowchart Test Page