Skip to content

Commit

Permalink
Fix for broken gitGraph for Mermaid Live Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjain0512 committed Apr 21, 2022
1 parent df87ab8 commit a6299d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function parse(text) {
log.debug('Type ' + graphType);
switch (graphType) {
case 'gitGraph':
gitGraphAst.clear();
parser = gitGraphParser;
parser.parser.yy = gitGraphAst;
break;
Expand Down

0 comments on commit a6299d8

Please sign in to comment.