mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
add case block for mermaid api parser.
This commit is contained in:
parent
89307d3f13
commit
0538048f24
@ -257,6 +257,10 @@ var parse = function(text){
|
|||||||
var parser;
|
var parser;
|
||||||
|
|
||||||
switch(graphType){
|
switch(graphType){
|
||||||
|
case 'gitGraph':
|
||||||
|
parser = gitGraphParser;
|
||||||
|
parser.parser.yy = gitGraphAst;
|
||||||
|
break;
|
||||||
case 'graph':
|
case 'graph':
|
||||||
parser = flowParser;
|
parser = flowParser;
|
||||||
parser.parser.yy = graph;
|
parser.parser.yy = graph;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user