fix: clear state before error; closes #2931 (#2932)

This commit is contained in:
Yash Singh 2022-04-13 02:04:00 +00:00 committed by GitHub
parent 0935fb0790
commit 37f6a42de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 883 additions and 642 deletions

760
dist/mermaid.core.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

760
dist/mermaid.js vendored

File diff suppressed because it is too large Load Diff

2
dist/mermaid.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -82,6 +82,7 @@ function parse(text) {
case 'gitGraph':
parser = gitGraphParser;
parser.parser.yy = gitGraphAst;
parser.parser.yy.clear();
break;
case 'flowchart':
flowDb.clear();