Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: