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

Mermaid as Image not working #4941

Open
2 tasks done
NicoStrecker opened this issue Mar 10, 2025 · 0 comments
Open
2 tasks done

Mermaid as Image not working #4941

NicoStrecker opened this issue Mar 10, 2025 · 0 comments

Comments

@NicoStrecker
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug
When i insert a Mermaid-Diagram with: + > Advanced > Mermaid... > as Image
and the mermaid contains <br> only a placeholder image is displayed not the actual diagram.
It would be better to clean this up or notify the user.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ' + > Advanced > Mermaid...`
  2. Choose Image
  3. Insert
flowchart TB
 alice --> Bob["Bob the<br>Builder"]
Loading
  1. See error
    Expected behavior
    Display a warning or silently remove the linebreaks

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Image

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 26.1.0

Desktop (please complete the following information):

  • OS: Windows
  • Browser Edge
  • Browser Version 134.0.3124.51

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant