diff --git a/cypress/integration/rendering/sequencediagram.spec.js b/cypress/integration/rendering/sequencediagram.spec.js
index c084b73c1..cf65485c7 100644
--- a/cypress/integration/rendering/sequencediagram.spec.js
+++ b/cypress/integration/rendering/sequencediagram.spec.js
@@ -182,5 +182,18 @@ context('Sequence diagram', () => {
{}
);
});
+ it('should render autonumber with different line breaks', () => {
+ imgSnapshotTest(
+ `
+ sequenceDiagram
+ autonumber
+ Alice->>John: Hello John,
how are you?
+ Alice->>John: John,
can you hear me?
+ John-->>Alice: Hi Alice,
I can hear you!
+ John-->>Alice: I feel great!
+ `,
+ {}
+ );
+ });
});
});
diff --git a/dist/index.html b/dist/index.html
index 46af0d709..6c6d9dc8c 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -441,6 +441,14 @@ end
4->>1: multiline
using #lt;br /#gt;
note right of 1: multiline
using #lt;br /#gt;
+