Compare commits

...

4 Commits

Author SHA1 Message Date
Knut Sveidqvist
2758d64778 Release 8.13.2 2021-09-29 20:22:45 +02:00
Knut Sveidqvist
8ee3155f2a Fix for broken test 2021-09-29 20:20:44 +02:00
Ashish Jain
cb2294d6f2 Merge branch '2292_Class_Diagram_curly_brace_space_issue' into release/8.13.2 2021-09-29 20:06:32 +02:00
Ashish Jain
55eebd9309 2292 Fix for broken class diagram on space after the '{' curly brace 2021-09-29 17:13:14 +02:00
9 changed files with 23 additions and 16 deletions

View File

@@ -375,7 +375,7 @@ describe('Class diagram V2', () => {
imgSnapshotTest(
`
classDiagram-v2
Foo {
class Foo {
+String bar$
}
`,
@@ -408,7 +408,7 @@ describe('Class diagram V2', () => {
);
cy.get('svg');
});
it('18: should handle the direction statemnent with LR', () => {
imgSnapshotTest(
`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

9
dist/mermaid.js vendored

File diff suppressed because one or more lines are too long

2
dist/mermaid.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/mermaid.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "8.13.0",
"version": "8.13.2",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"main": "dist/mermaid.core.js",
"keywords": [

View File

@@ -29,7 +29,8 @@
<arg_directive>((?:(?!\}\%\%).|\n)*) return 'arg_directive';
\%\%(?!\{)*[^\n]*(\r?\n?)+ /* skip comments */
\%\%[^\n]*(\r?\n)* /* skip comments */
(\r?\n)+ return 'NEWLINE';
\s*(\r?\n)+ return 'NEWLINE';
\s+ /* skip whitespace */
"classDiagram-v2" return 'CLASS_DIAGRAM';
"classDiagram" return 'CLASS_DIAGRAM';
@@ -262,7 +263,7 @@ classStatement
;
annotationStatement
: ANNOTATION_START alphaNumToken ANNOTATION_END className { yy.addAnnotation($4,$2); }
:ANNOTATION_START alphaNumToken ANNOTATION_END className { yy.addAnnotation($4,$2); }
;
members