mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fix flowchart jison
This commit is contained in:
parent
53fe35e37e
commit
f1fa91a51c
@ -27,9 +27,9 @@
|
||||
"build:code": "node .esbuild/esbuild.cjs",
|
||||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
||||
"build:webpack": "webpack --mode production --progress --color",
|
||||
"build:watch": "yarn build:code --watch",
|
||||
"build": "yarn clean; concurrently \"yarn build:code\" \"yarn build:types\"",
|
||||
"postbuild": "documentation build src/mermaidAPI.ts src/config.ts src/defaultConfig.ts --shallow -f md --markdown-toc false > docs/Setup.md",
|
||||
"build:watch": "yarn build:code --watch",
|
||||
"release": "yarn build",
|
||||
"lint": "eslint --cache ./ --ext .js,.json,.html,.md",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
|
@ -271,7 +271,7 @@ document
|
||||
{ $$ = [];}
|
||||
| document line
|
||||
{
|
||||
if(Array.isArray($2) && $2.length > 0){
|
||||
if(!Array.isArray($2) || $2.length > 0){
|
||||
$1.push($2);
|
||||
}
|
||||
$$=$1;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user