From 1f59b1e329ab22ff36d4d97ca25545c41978afb0 Mon Sep 17 00:00:00 2001 From: Vijay Jain Date: Fri, 30 Jan 2015 23:11:21 +0530 Subject: [PATCH] Update flowchart.md in response Issue #113 Remove duplicate rhombus node syntax and include mermaid syntax for graph declaration without semicolons. --- docs/flowchart.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/flowchart.md b/docs/flowchart.md index d5191d4ba6..592efbe54a 100644 --- a/docs/flowchart.md +++ b/docs/flowchart.md @@ -96,15 +96,6 @@ Currently only the shape above is possible and not its mirror. *This might chang id1{This is the text in the box} ``` -``` -graph LR - id1{This is the text in the box} -``` -### A node (rhombus) -``` - id1{This is the text in the box} -``` - ``` graph LR id1{This is the text in the box} @@ -289,7 +280,15 @@ If a class is named default it will be assigned to all classes without specific * A single space is allowed between vertices and the link. However there should not be any space between a vertex and its text and a link and its text. The old syntax of graph declaration will also work and hence this new feature is optional and is introduce to improve readability. -Below is the new declaration of the graph which is also valid along with the old declaration of the graph as described in the graph example on the home wiki page. +Below is the new declaration of the graph edges which is also valid along with the old declaration of the graph edges. + +``` + A[Hard edge] -->|Link text| B(Round edge) + B --> C{Decision} + C -->|One| D[Result one] + C -->|Two| E[Result two] +``` + ``` graph LR