#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

@@ -261,6 +261,16 @@ describe('state diagram, ', function() {
parser.parse(str);
});
it('should handle multiline notes with different line breaks', function() {
const str = `stateDiagram
State1
note right of State1
Line1<br>Line2<br/>Line3<br />Line4<br />Line5
end note
`;
parser.parse(str);
});
it('should handle floating notes', function() {
const str = `stateDiagram
foo: bar