Mermaid interaction - Link to local files/notes
Author: TrerotCreated Jan 20, 2022Updated Jul 20, 2025
Labelstype.enhancementscope.markdown
Please select if your request is either something new or an enhancement
- Enhancement of an existing Feature.
- Request of a new feature.
Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- Lookup - Dendron's Lookup Command
- Views - Dendron Preview, Tree View, Side Panels in the UI
- Schema - Dendron Schemas
- Pod - Data import from / export to Dendron
- Publish - External Site Publish
- Markdown - Markdown features, such as syntax support and features
Is your feature request related to a problem? Please describe
mermaid supports interaction via clicks. and it works fine for https links like in the example below.
graph TD;
A-->B;
click A href "https://bbc.com"but does not work with local files or notes. "file://localhost/c$/Users/Trerot/test.txt" or [[dendron.topic.markdown]]
https://mermaid-js.github.io/mermaid/#/flowchart?id=interaction
Describe the solution you'd like
ability to link to local notes in mermaid diagrams kinda like in the example below.
graph TD;
A-->B;
click A href "[[dendron.topic.markdown]]"Describe alternatives you've considered
Additional context
Source: dendronhq/dendron