From ecb7935896012da551255711edb1b6e381948c2f Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 31 Dec 2018 20:28:27 +0800 Subject: feat(flowchart): support keyword `flow` Closes #113 --- exampleSite/content/post/js-flowchart-diagrams.md | 42 ++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'exampleSite') diff --git a/exampleSite/content/post/js-flowchart-diagrams.md b/exampleSite/content/post/js-flowchart-diagrams.md index 1851333..f6493d5 100644 --- a/exampleSite/content/post/js-flowchart-diagrams.md +++ b/exampleSite/content/post/js-flowchart-diagrams.md @@ -41,7 +41,7 @@ flowchartDiagrams: ## Usage -```flowchart +```flow st=>start: Start|past:>http://www.google.com[blank] e=>end: End:>http://www.google.com op1=>operation: My Operation|past @@ -61,6 +61,46 @@ c2(no)->op2->e +{{< highlight "linenos=table" >}} +```flow +st=>start: Start|past:>http://www.google.com[blank] +e=>end: End:>http://www.google.com +op1=>operation: My Operation|past +op2=>operation: Stuff|current +sub1=>subroutine: My Subroutine|invalid +cond=>condition: Yes +or No?|approved:>http://www.google.com +c2=>condition: Good idea|rejected +io=>inputoutput: catch something...|request + +st->op1(right)->cond +cond(yes, right)->c2 +cond(no)->sub1(left)->op1 +c2(yes)->io->e +c2(no)->op2->e +``` +{{< / highlight >}} + +## Legacy Usage + +```flowchart +st=>start: Start|past:>http://www.google.com[blank] +e=>end: End:>http://www.google.com +op1=>operation: My Operation|past +op2=>operation: Stuff|current +sub1=>subroutine: My Subroutine|invalid +cond=>condition: Yes +or No?|approved:>http://www.google.com +c2=>condition: Good idea|rejected +io=>inputoutput: catch something...|request + +st->op1(right)->cond +cond(yes, right)->c2 +cond(no)->sub1(left)->op1 +c2(yes)->io->e +c2(no)->op2->e +``` + ```flowchart st=>start: Start|past:>http://www.google.com[blank] e=>end: End:>http://www.google.com -- cgit v1.2.3