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

Support relatives file links in diagrams #130

Open pleabargain opened 2 years ago

pleabargain commented 2 years ago

I have two diagrams in my dir test.md proj.md

I want to be able to link between one diagram and another inside VS Code. thank you Dennis

```mermaid
graph LR;
    A-->proj2;
    click proj2 "C:\Users\denni\OneDrive\Documents\mermaid_play\test.md"
mjbvz commented 2 years ago

Is this supported in mermaid?

pleabargain commented 2 years ago

Click to a different URL is supported in Mermaid.

mjbvz commented 2 years ago

What about relative links? Supporting absolute file paths is out of scope as they would not work in html and are not portable

stefanfritsch commented 1 year ago

Yes, according to this stackoverflow answer.

Relative file links would be brilliant. Mermaid would be so useful as tool to document a repo structure.

o-o00o-o commented 10 months ago

I have exactly the same requirement. It works find if I publish to Azure Devops wiki, but not in vscode preview right now forcing me to have a bunch of disconnected links to the md's I want to link to. It would be an infinitely better user experience to be able to click on the diagram nodes