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

Entering a latex equation within a node, removes newlines (<br>) from the rendered output #5941

Open
npapnet opened this issue Oct 7, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@npapnet
Copy link

npapnet commented Oct 7, 2024

Description

When I start a graph in mermaid live

graph TB
    A["This should be <br> but its not "]--"$$\int A dx$$"--> B

The new line is properly rendered.

However when I add a latex environment $$ ... $$ like the following, the new line disappers and all the text is rendered in one line.

graph TB
    A["This should be <br> but its not $$\int_a^b$$"]--"$$\int A dx$$"--> B

I am pretty positive that this was not the case before.

Steps to reproduce

Just add the code above in mermaid live

Screenshots

New line rendered
image

Text not rendered
image

Code Sample

No response

Setup

  • Mermaid version: 11.3.0 Live editor
  • Browser and Version: Edge, and Firefox

Suggested Solutions

No response

Additional Context

No response

@npapnet npapnet added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant