News for hackers. Stuff that matters.
Re:Mermaid: Generate Diagrams and Flowcharts with Markdown L... by maffydub on Thursday January 05, 2017 @12:44PM (#13329370)
I was quite excited by this - I normally use mscgen (http://www.mcternan.me.uk/mscgen/).

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.

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.)

Re:Mermaid: Generate Diagrams and Flowcharts with Markdown L... by maffydub on Friday January 06, 2017 @08:06AM (#13335943)
Sorry, I meant I couldn't find a way to do the same thing as that in Mermaid - I realize my message wasn't very clear, but thanks for replying!