mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
640 stars 115 forks source link

Click "#id" do not work on flowchart with Markdown #126

Open wojtek717 opened 2 years ago

wojtek717 commented 2 years ago

Describe the bug The click "#id"does not work when you use it in Makrdown using the Markdown Preview Mermaid Support to jump to a particular section on the current page. Instead of jumping to the given section, the about:blank page appears.

To Reproduce Steps to reproduce the behavior:

  1. Open VS Code and install Markdown Preview Mermaid Support extension
  2. Add to your markdown code the id section: # id
  3. Add to your markdown code mermaid flowchart

    flowchart TB
     A1[Click me]
    
     click A1 "#id"

    or

    flowchart TB
     A1[Click me]
    
     click A1 href "#id"
  4. Click A1 node
  5. about:blank page appears.

Expected behavior After clicking on A1, the page is set to the #id section.

Code Sample

   flowchart TB
     A1[Click me]

     click A1 "#id"

or

   flowchart TB
     A1[Click me]

     click A1 href "#id"

Desktop (please complete the following information):

arnaultbretagne commented 7 months ago

Is this feature planned to be supported please ?