Skip to content

Markdown: Allow to open files inside the editor that are linked from the markdown #989

@Enet4

Description

@Enet4

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.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitymarkdownMarkdown support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions