diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index 477491613..95b217c9f 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -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;