mermaid-js / mermaid-live-editor

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
https://mermaid.live
MIT License
3.82k stars 574 forks source link

node:::hidden property still renders to png file #1441

Open Ryder17z opened 2 months ago

Ryder17z commented 2 months ago

Describe the bug Property :::hidden doesn't hide the element properly when rendering to png, svg not tested, but it may have a similar issue

To Reproduce Link to Live Editor: https://mermaid.live/ Steps to reproduce the behavior:

Use the :::hidden property, then click save as png

i.e.

flowchart TD
    noneMain:::hidden ~~~
    A[Christmas] -->|Get money| B(Go shopping)
    B --> C{Let me think}
    C -->|One| D[Laptop]
    C -->|Two| E[iPhone]
    C -->|Three| F[fa:fa-car Car]

Expected behavior It shouldn't be rendered in the png output

Screenshots vivaldi-screenshot

Desktop (please complete the following information):

Additional context The bug sometimes renders differently on chromium-based browsers compared to firefox and it's forks