mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
#1200 Unify regex for finding <br> tags throughout mermaid
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user