Mermaid-Chart / issue-tracker

Other
11 stars 2 forks source link

Copying the database snippet copies the subroutine code #91

Open amnuts opened 2 months ago

amnuts commented 2 months ago

Describe the bug

On the playground at https://www.mermaidchart.com/play, when you copy the 'database' snippet, it has the wrong formatting, putting into the clipboard a sub-routine instead. If you use the insert option for database, it uses the correct format.

To Reproduce

  1. Go to the playground and start a graph new graph.
  2. Go to the snippets and insert a database. You'll get dbId[("`label`")] inserted.
  3. Click on the icon to copy the database, paste from the clipboard into the graph, and you'll have dbId[["`label`"]]

Expected behaviour

Copying the database snippet puts dbId[("`label`")] into the clipboard.