Skip to content

Commit ef3af8d

Browse files
committed
support flowchart.js
1 parent 7281b5b commit ef3af8d

File tree

5 files changed

+15695
-211
lines changed

5 files changed

+15695
-211
lines changed

example/src/components/example.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Note: Only \`h2\` and \`h3\` are shown in toc.
99
1010
## mermaid charts
1111
12-
### Flowchart
12+
### mermaid Flowchart
1313
1414
[Flowchart Syntax](http://knsv.github.io/mermaid/#flowcharts-basic-syntax)
1515
@@ -153,4 +153,30 @@ npm install markdown-it-vue
153153
| Content Cell | Content Cell |
154154
| Content Cell | Content Cell |
155155
156+
## flowchart.js
157+
158+
\`\`\`flowchart.js
159+
st=>start: Start|past:>http://www.google.com[blank]
160+
e=>end: End:>http://www.google.com
161+
op1=>operation: My Operation|past
162+
op2=>operation: Stuff|current
163+
sub1=>subroutine: My Subroutine|invalid
164+
cond=>condition: Yes
165+
or No?|approved:>http://www.google.com
166+
c2=>condition: Good idea|rejected
167+
io=>inputoutput: catch something...|request
168+
para=>parallel: parallel tasks
169+
170+
st->op1(right)->cond
171+
cond(yes, right)->c2
172+
cond(no)->para
173+
c2(true)->io->e
174+
c2(false)->e
175+
176+
para(path1, bottom)->sub1(left)->op1
177+
para(path2, right)->op2->e
178+
179+
st@>op1({"stroke":"Red"})@>cond({"stroke":"Red","stroke-width":6,"arrow-end":"classic-wide-long"})@>c2({"stroke":"Red"})@>op2({"stroke":"Red"})@>e({"stroke":"Red"})
180+
\`\`\`
181+
156182
`

0 commit comments

Comments
 (0)