-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add newline in the text #384
Comments
We should support this. A good task for someone that wants to be a part of the project. |
One of the examples for sequence diagrams shows HTML |
I found that using |
Sorry, still not giving line breaks as expected for sequence diagrams (Chrome 56+ and Firefox 51+). |
Line breaks work in
|
|
@Lucas-C It seems to work in mermaid-live-editor: https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVEQKQihCPGJyPmIpCg |
Yeah, I wasn't clear about this one: click "Download SVG" and you'll see the error |
@Lucas-C Confirmed. Downloaded SVG doesn't work. |
At least some SVG implementations support newline, but not using HTML's Instead, SVG evidently supports embedding the ASCII NL character. An example is here. |
So a fix could be to replace every |
I suspect the fix would be to replace the |
@alanmimms @Lucas-C I'm unable to get
Any suggestions? |
@KaptainRose write different lines between <p> and </p>... it worked for me |
@DorfilIkatu thank you so much, it worked! |
Please make it to output |
I tried using |
done
|
Will this be supported in the sequence diagram too? |
This doesn't appear to be done. At least not in the Live Editor. I had to go into the svg and manually change all to be |
- Add support for <br/> delimiter in actor descriptions. - Add actorFontFamily and actorFontSize options to sequence diagram. - Change default actor description font from times to sans. Fix mermaid-js#384 mermaid-js#702 mermaid-js#755
i think there's still some work to be done here. should i try to become a collaborator?:
see the mermaid-live-editor view here in gitlab, none of these examples introduce newlines. |
I cannot get the live-editor to introduce newlines in any browser with any method as well. Please reopen this. |
I tried to get a newline in a box in Pandoc, with Mardown Preview Enhanced, and also did not manage to get a newline. Would be greatly appreciated if this could be fixed. |
any progress on this? sequence diagrams still doesn't support multi lines for message lines, |
Hi,
i wanted to try this on sequence diagram and couldn't get it to work.
https://mermaidjs.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoic2VxdWVuY2VEaWFncmFtXG5BLT4-QjogYSB2ZXJ5IHNpbXBsZSBtdWx0aSA8YnIvPiAmI3hBOyAgXFxyXFxuIGxpbmUgc2VudGVuY2UiLCJtZXJtYWlkIjp7InRoZW1lIjoibmV1dHJhbCJ9fQ
With regards,
Raja
…On Mon, Jun 17, 2019 at 4:23 PM Tim Cashion ***@***.***> wrote:
I just searched for this and it worked for me running in RStudio 
 .
I tried <br/> and \n before this and neither worked.
grViz("digraph flowchart {
# node definitions with substituted label text
node [fontname = Helvetica, shape = rectangle]
tab1 [label = '@@1 <https://github.com/1>']
tab2 [label = '@@2 <https://github.com/2>']
tab3 [label = '@@3 <https://github.com/3>']
tab4 [label = '@@4 <https://github.com/4>']
tab5 [label = '@@5 <https://github.com/5>']
tab6 [label = '@@6 <https://github.com/6>']
tab7 [label = '@@7 <https://github.com/7>']
tab8 [label = '@@8 <https://github.com/8>']
# edge definitions with the node IDs
tab1 -> tab2;
tab1 -> tab3;
tab3 -> tab4;
tab3 -> tab5;
tab5 -> tab6;
tab5 -> tab7;
tab7 -> tab8
}
[1]: 'Label'
[2]: 'Step 1: Match by Type, Group,
State, Processed, and Final Processed'
[3]: 'Unmatched at Step 1'
[4]: 'Step 2: Match by Type, State, 
Processed, and Final Processed'
[5]: 'Unmatched at Step 2'
[6]: 'Step 3: Match by Type,
Processed, and Final Processed'
[7]: 'Unmatched at Step 3'
[8]: 'Step 4: Match by Type only'
")
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#384>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKJPFIRJTPHZ36CH2DEPNTP3AMFPANCNFSM4COHMVUQ>
.
|
+1, I'd like to get multiline text in a Sequence Diagram, no clear way to do this still. Can this be reopened? |
same here! |
When using Is it possible to have the same behavior in flowcharts? |
@etimau Hey! You're commenting in an old closed issue. Feel free to create a new issue if you found a bug, need help, want to request a feature or anything! |
I am trying to break the text in two lines on top of arrows or on notes but newline is not working anywhere
Example
Note right of ABC: - Group all \n large and medium
OR
abc->>cuz: How are \n you?
Am I missing some syntax?
The text was updated successfully, but these errors were encountered: