Sequence Diagrams with messageAlign smash text with `<br>`
See original GitHub issueDescribe the bug
When create a sequence diagram with messageAlign: left
config and the text contains <br>
line breaks, all the lines gets smashed into the first line.
To Reproduce Steps to reproduce the behavior:
- Set the config to
{ "sequence": { "messageAlign": "left"} }
- Create a sequence diagram using
<br>
in the message
Expected behavior The diagram to have left aligned text with line breaks, as in https://github.com/mermaid-js/mermaid/pull/1315
Screenshots <kbd></kbd>
You can see in the screenshot everything is smashed into the first line.
Code Sample Live Editor example
```mermaid
%%{init: { 'sequence': {'messageAlign': 'left'} }}%%
sequenceDiagram
User->>Browser: Click hello
Browser->>Server: Get /hello HTTP/1.1 <br> Host: example.com <br> Accept: text/html
Server->>Browser: HTTP/1.1/ 200 OK <br> Content-Type: text/html <br> Content-Length: 42
```
Github Render:
%%{init: { 'sequence': {'messageAlign': 'left'} }}%%
sequenceDiagram
User->>Browser: Click hello
Browser->>Server: Get /hello HTTP/1.1 <br> Host: example.com <br> Accept: text/html
Server->>Browser: HTTP/1.1/ 200 OK <br> Content-Type: text/html <br> Content-Length: 42
Desktop (please complete the following information):
- OS: macOS 12.3.1
- Browser: Chrome
- Version: 101.0.4951.54
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:6
Top Results From Across the Web
Sequence Diagrams with Mermaid and Diagrams.net
Another tool that gets mentioned for Diagrams-as-Code is Mermaid which “uses Markdown-inspired text definitions and a renderer to create and ...
Read more >Sequence Diagram syntax and features - PlantUML
Basic examples. The sequence -> is used to draw a message between two participants. Participants do not have to be explicitly declared.
Read more >Can I add a line break when I add a note using markup ...
Hi,. I am using this quite cool feature "Markup" for UML Sequence, this allows me to "write" the sequence diagram. I am able...
Read more >UML Sequence Diagram - Ashley's PlantUML Doc
A UML Sequence diagram shows how messages go back and forth between objects over time. ... The basic syntax for a line in...
Read more >mermaid - Generation of diagrams and flowcharts ... - UNPKG
It is possible to break text into different rows by using <br/> as a line breaker. %% Example of sequence diagram sequenceDiagram participant...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
eventually it is done https://github.com/mermaid-js/mermaid/issues/3594
If you could do it today, it would be great otherwise I’ll do it tomorrow (late)
Le mer. 21 sept. 2022 à 19:20, Kevin Woo @.***> a écrit :