add case block for mermaid api parser.

This commit is contained in:
Raghu Rajagopalan 2016-04-04 13:35:52 +05:30
parent 89307d3f13
commit 0538048f24

View File

@ -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;