Re:Mermaid: Generate Diagrams and Flowcharts with Markdown L...
by sverweij on Thursday January 05, 2017 @05:24PM
(#13332004)
Use '\n' for line breaks, like so:
a => b [label="POST /echo\nHello, it's me"];
(You might like https://mscgen.js.org b.t.w.)
Unfortunately, I can't find a way to break text strings onto multiple lines in ladder diagrams. Does anyone know how?
One of the examples shows <br/> tags within a Note. The <br/> is stripped out and the text is wrapped onto multiple lines within the note box, but the wrapping is completely independent of the <br/> tags.
...and this doesn't work for text on ladder diagram arrows. I find this very useful to add additional information, e.g. "POST /echo" above the arrow and the POST body below the arrow.