Skip to content
Permalink
Browse files

feat(flowchart): support keyword `flow`

Closes #113
  • Loading branch information
olOwOlo committed Dec 31, 2018
1 parent b583f81 commit ecb7935896012da551255711edb1b6e381948c2f
@@ -1,6 +1,6 @@
{
"even": {
"css": "even.93844dae.min.css",
"js": "even.ece58db6.min.js"
"css": "even.c2a46f00.min.css",
"js": "even.26188efa.min.js"
}
}
@@ -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

<!--more-->

{{< 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
@@ -221,7 +221,7 @@ Even._linkToc = function() {
Even.flowchart = function() {
if (!window.flowchart) return;

const blocks = document.querySelectorAll('pre code.language-flowchart');
const blocks = document.querySelectorAll('pre code.language-flowchart, pre code.language-flow');
for (let i = 0; i < blocks.length; i++) {
if (!window.hljs && i % 2 === 0) continue;

Some generated files are not rendered by default. Learn more.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit ecb7935

Please sign in to comment.
You can’t perform that action at this time.