diff --git a/cypress/integration/rendering/theme.spec.js b/cypress/integration/rendering/theme.spec.js index 4e92c100d..d0da3a964 100644 --- a/cypress/integration/rendering/theme.spec.js +++ b/cypress/integration/rendering/theme.spec.js @@ -233,7 +233,9 @@ erDiagram Do work: 1: Me, Cat section Go home Go downstairs: 5: Me - Sit down: 5: Me ` + Sit down: 5: Me + `, + {theme} ); cy.get('svg'); }); diff --git a/src/diagrams/class/parser/classDiagram.jison b/src/diagrams/class/parser/classDiagram.jison index 7c8d36a95..83a856c5e 100644 --- a/src/diagrams/class/parser/classDiagram.jison +++ b/src/diagrams/class/parser/classDiagram.jison @@ -147,8 +147,8 @@ mermaidDoc graphConfig : NEWLINE - | NEWLINE graphConfig | graphConfig NEWLINE + | NEWLINE CLASS_DIAGRAM NEWLINE statements EOF | CLASS_DIAGRAM NEWLINE statements EOF ;