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

Support relatives file links in diagrams #130

Open
pleabargain opened this issue May 1, 2022 · 5 comments
Open

Support relatives file links in diagrams #130

pleabargain opened this issue May 1, 2022 · 5 comments

Comments

@pleabargain
Copy link

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
Copy link
Owner

mjbvz commented May 2, 2022

Is this supported in mermaid?

@pleabargain
Copy link
Author

Click to a different URL is supported in Mermaid.

@mjbvz
Copy link
Owner

mjbvz commented May 3, 2022

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

@stefanfritsch
Copy link

Yes, according to this stackoverflow answer.

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

@mjbvz mjbvz changed the title user request: support for links between other diagrams in VS Code Support relatives file links in diagrams Dec 6, 2022
@o-o00o-o
Copy link

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

@mjbvz mjbvz mentioned this issue Dec 6, 2023
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