Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BR tags in mermaid not rendering #905

Open
gene1wood opened this issue Jul 24, 2018 · 3 comments
Open

BR tags in mermaid not rendering #905

gene1wood opened this issue Jul 24, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@gene1wood
Copy link

gene1wood commented Jul 24, 2018

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 (mermaid-js/mermaid#702) which allows <br/> work but <br /> (with a space) fails. My original bug had more text because of this confusion.

@jackycute
Copy link
Member

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

@jackycute
Copy link
Member

This issue also has been confirmed in CodiMD.

@SISheogorath
Copy link
Contributor

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

@SISheogorath SISheogorath added the bug Something isn't working label Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants