mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +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;
|
||||
|
||||
switch(graphType){
|
||||
case 'gitGraph':
|
||||
parser = gitGraphParser;
|
||||
parser.parser.yy = gitGraphAst;
|
||||
break;
|
||||
case 'graph':
|
||||
parser = flowParser;
|
||||
parser.parser.yy = graph;
|
||||
|
Loading…
x
Reference in New Issue
Block a user