Merge pull request #4436 from slab/zh-mermaid-empty-text

Fix exceptions for empty lines
This commit is contained in:
Sidharth Vinod
2023-06-05 11:43:43 +05:30
committed by GitHub
3 changed files with 17 additions and 4 deletions

View File

@@ -88,6 +88,16 @@ context('Sequence diagram', () => {
{}
);
});
it('should handle empty lines', () => {
imgSnapshotTest(
`
sequenceDiagram
Alice->>John: Hello John<br/>
John-->>Alice: Great<br/><br/>day!
`,
{}
);
});
it('should handle line breaks and wrap annotations', () => {
imgSnapshotTest(
`