From 89385bb03ec1601b0b9d822ed4d459821013eb85 Mon Sep 17 00:00:00 2001 From: Lindsey Wild Date: Wed, 6 Apr 2022 16:06:57 -0400 Subject: [PATCH] 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 e9645dcccbf..69b32497c11 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 864fac6877c..47a9c520f56 100644 --- a/demos/flowchart.html +++ b/demos/flowchart.html @@ -3,7 +3,7 @@ - Mermaid Quick Test Page + Mermaid Quick Flowchart Test Page