#1200 Unify regex for finding <br> tags throughout mermaid

This commit is contained in:
Marc Faber
2020-01-13 22:04:47 +01:00
parent eade3d0a2d
commit 5493fadc9e
9 changed files with 112 additions and 45 deletions

View File

@@ -121,6 +121,18 @@ describe('State diagram', () => {
{}
);
});
it('should handle multiline notes with different line breaks', () => {
imgSnapshotTest(
`
stateDiagram
State1
note right of State1
Line1<br>Line2<br/>Line3<br />Line4<br />Line5
end note
`,
{}
);
});
it('should render a states with descriptions including multi-line descriptions', () => {
imgSnapshotTest(