diff --git a/README.md b/README.md
index 31c6d62c6..941e1fd18 100644
--- a/README.md
+++ b/README.md
@@ -165,6 +165,13 @@ class Class10 {
int id
size()
}
+namespace Namespace01 {
+ class Class11
+ class Class12 {
+ int id
+ size()
+ }
+}
```
```mermaid
@@ -184,6 +191,13 @@ class Class10 {
int id
size()
}
+namespace Namespace01 {
+ class Class11
+ class Class12 {
+ int id
+ size()
+ }
+}
```
### State diagram [docs - live editor]
diff --git a/cSpell.json b/cSpell.json
index 6e091ac3d..9c2511134 100644
--- a/cSpell.json
+++ b/cSpell.json
@@ -25,6 +25,7 @@
"classdef",
"codedoc",
"colour",
+ "commitlint",
"cpettitt",
"customizability",
"cuzon",
@@ -65,13 +66,16 @@
"knut",
"knutsveidqvist",
"laganeckas",
+ "linetype",
"lintstagedrc",
"logmsg",
"lucida",
+ "markdownish",
"matthieu",
"matthieumorel",
"mdast",
"mdbook",
+ "mermaidjs",
"mermerd",
"mindaugas",
"mindmap",
@@ -94,6 +98,7 @@
"rect",
"rects",
"redmine",
+ "rehype",
"roledescription",
"sandboxed",
"setupgraphviewbox",
@@ -101,8 +106,12 @@
"sidharth",
"sidharthv",
"sphinxcontrib",
+ "startx",
+ "starty",
"statediagram",
"steph",
+ "stopx",
+ "stopy",
"stylis",
"substate",
"sveidqvist",
@@ -112,11 +121,13 @@
"textlength",
"treemap",
"ts-nocheck",
+ "tsdoc",
"tuleap",
"tylerlong",
"ugge",
"unist",
"unocss",
+ "valign",
"verdana",
"viewports",
"vinod",
diff --git a/cypress/integration/rendering/classDiagram-v2.spec.js b/cypress/integration/rendering/classDiagram-v2.spec.js
index a11571814..2e7a1cbd7 100644
--- a/cypress/integration/rendering/classDiagram-v2.spec.js
+++ b/cypress/integration/rendering/classDiagram-v2.spec.js
@@ -548,4 +548,18 @@ class C13["With Città foreign language"]
`
);
});
+ it('should add classes namespaces', function () {
+ imgSnapshotTest(
+ `
+ classDiagram
+ namespace Namespace1 {
+ class C1
+ class C2
+ }
+ C1 --> C2
+ class C3
+ class C4
+ `
+ );
+ });
});
diff --git a/cypress/integration/rendering/sequencediagram.spec.js b/cypress/integration/rendering/sequencediagram.spec.js
index 687fc245b..e5459637b 100644
--- a/cypress/integration/rendering/sequencediagram.spec.js
+++ b/cypress/integration/rendering/sequencediagram.spec.js
@@ -123,6 +123,29 @@ context('Sequence diagram', () => {
}
);
});
+ it('should render a sequence diagram with par_over', () => {
+ imgSnapshotTest(
+ `
+ sequenceDiagram
+ participant Alice
+ participant Bob
+ participant John
+ par_over Section title
+ Alice ->> Bob: Message 1
Second line
+ Bob ->> John: Message 2
+ end
+ par_over Two line
section title
+ Note over Alice: Alice note
+ Note over Bob: Bob note
Second line
+ Note over John: John note
+ end
+ par_over Mixed section
+ Alice ->> Bob: Message 1
+ Note left of Bob: Alice/Bob Note
+ end
+ `
+ );
+ });
context('font settings', () => {
it('should render different note fonts when configured', () => {
imgSnapshotTest(
diff --git a/demos/sequence.html b/demos/sequence.html
index aa2332520..b2733a384 100644
--- a/demos/sequence.html
+++ b/demos/sequence.html
@@ -144,6 +144,26 @@
>
+ sequenceDiagram + participant Alice + participant Bob + participant John + par_over Section title + Alice ->> Bob: Message 1+
Second line + Bob ->> John: Message 2 + end + par_over Two line
section title + Note over Alice: Alice note + Note over Bob: Bob note
Second line + Note over John: John note + end + par_over Mixed section + Alice ->> Bob: Message 1 + Note left of Bob: Alice/Bob Note + end +