jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
50.95k stars 5.03k forks source link

A Mermaid graph that could not be descently rendered #1850

Open idealkindom opened 2 months ago

idealkindom commented 2 months ago

Preflight Checklist

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.

Describe the bug There is Mermaid graph that could not be rendered right with Draw IO 24.7.8.

To Reproduce Steps to reproduce the behavior: Under classic Theme

  1. Go to Arrange and then 'insert'
  2. Click on 'advanced'
  3. Scroll down and click 'Mermaid'
  4. paste the follow Mermaid code and keep the other options as default and click "insert"
    sequenceDiagram
    autonumber
    participant 1 as $$\alpha$$
    participant 2 as $$\beta$$
    1->>2: Solve: $$\sqrt{2+2}$$
    2-->>1: Answer: $$2$$
    Note right of 2: $$\sqrt{2+2}=\sqrt{4}=2$$

    you will see that the graph is not rightly rendered.

Expected behavior The right rendering of the graph could be checked by pasting the code to Mermaid live online. Screenshots If applicable, add screenshots to help explain your problem.

mermaid problem

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

Desktop (please complete the following information):

Additional context Add any other context about the problem here.