mermaid-live-editor icon indicating copy to clipboard operation
mermaid-live-editor copied to clipboard

node:::hidden property still renders to png file

Open Ryder17z opened this issue 4 months ago • 0 comments

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):

  • OS: Windows 10
  • Browser 1: Waterfox G6.0.11
  • Browser 2: Vivaldi 6.6.3271.61

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

Ryder17z avatar Apr 16 '24 13:04 Ryder17z