mermaidjs / mermaid.cli

Development has been moved to https://github.com/mermaid-js/mermaid-cli
MIT License
1.09k stars 117 forks source link

Support verbatim multiline text in node labels #99

Closed cdmihai closed 1 year ago

cdmihai commented 3 years ago

As far as I can tell the only way to have multiple lines of text in a node is by adding <br> tags:

graph TD
    B[Line 1<br>Line 2]

However, this gets really tedious for larger text, and I'd really like if we could do this:

graph TD
    B[
        Line 1
        Line 2
        ...
        Line n
     ]
forrestbao commented 1 year ago

I also wish this can be available. It allows me to add code into charts.

aloisklink commented 1 year ago

Development has moved to the https://github.com/mermaid-js/mermaid-cli repo, please re-open your issue there if it's still relevant. The package has also been renamed on NPM to @mermaid-js/mermaid-cli, so you may need to run npm uninstall mermaid.cli && npm install @mermaid-js/mermaid-cli to get the latest version of this package.