Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wojtek717 opened this issue Feb 23, 2022 · 2 comments
Open

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

wojtek717 opened this issue Feb 23, 2022 · 2 comments

Comments

@wojtek717
Copy link

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"
  1. Click A1 node
  2. 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):

  • OS: macOS
  • Browser: safari/chrome
  • Version: 14.1.1
@arnaultbretagne
Copy link

Is this feature planned to be supported please ?

@Wombosvideo
Copy link

Also click node "./filename.md" does not work. It is rendered as a link but clicking the link has no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants