You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdown: Allow to open files inside the editor that are linked from the markdown #989
The current behaviour of Code's Markdown previewer when clicking a relative link is actually a bit cryptic: it attempts to open the file relative to the user's home path with the system's application of choice. This will commonly lead to errors being dispatched because the file cannot be found.
If I have the following Markdown:
The data types are documented [here](typings/foo.d.ts).
Clicking the link will make my system attempt to open /home/username/typings/foo.d.ts.
Given that even GitHub supports relative links to project files, I strongly believe that they should be supported here. Such links should instead be relative to the markdown file's directory and open the linked file using the Code editor.
changed the title [-]Relative links in Markdown preview are improperly handled[/-][+]Markdown: Allow to open files inside the editor that are linked from the markdown[/+]on Dec 4, 2015
+1; opening markdown files by clicking a (relative) link in the preview would be a very powerful feature both for writing developer documentation (split into individual files by topic) for a project, but also for viewing that documentation.
Activity
[-]Relative links in Markdown preview are improperly handled[/-][+]Markdown: Allow to open files inside the editor that are linked from the markdown[/+]RWeigelt commentedon Dec 6, 2015
+1; opening markdown files by clicking a (relative) link in the preview would be a very powerful feature both for writing developer documentation (split into individual files by topic) for a project, but also for viewing that documentation.
noelleleigh commentedon Oct 14, 2016
Related: The markdown-it library that vscode uses stops file:// links from being being built.
Is this behavior something vscode could change for its markdown preview?
Support Local File Links from the Markdown Preview
Support Local File Links from the Markdown Preview (#18824)
Support Local File Links from the Markdown Preview (microsoft#18824)