hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.24k stars 1.05k forks source link

BR tags in mermaid not rendering #905

Open gene1wood opened 6 years ago

gene1wood commented 6 years ago

Example of the problem

Example code

sequenceDiagram
    participant Joe
    participant Alice
    Joe->>Alice: Foo
    Note over Alice: Bar<br/>Baz
    Note over Joe,Alice: That note above should have had a carriage return between Bar and Baz

<br/> tags are not rendered in Mermaid Notes. This may be because of the version of mermaid (7.1.2) that is being used on HackMD.

Over at https://mermaidjs.github.io/mermaid-live-editor/ it renders correctly. Here's an example.

Note : I was confused by a bug in mermaidjs (knsv/mermaid#702) which allows <br/> work but <br /> (with a space) fails. My original bug had more text because of this confusion.

jackycute commented 6 years ago

Hi @gene1wood, thanks for reporting! For hackmd.io and HackMD EE issues, please report to https://github.com/hackmdio/hackmd-io-issues/issues

jackycute commented 6 years ago

This issue also has been confirmed in CodiMD.

SISheogorath commented 6 years ago

Added the example for CodiMD: https://hackmd-ce.herokuapp.com/pdgR1XRZTMi5CctJI8dJDg#