markup icon indicating copy to clipboard operation
markup copied to clipboard

Markdown relative links broken

Open aboucaud opened this issue 1 year ago • 3 comments

Hi,

Very much like issue #926 the Markdown preview of the repository main README.md file does not currently redirect correctly to other Markdown files in subdirectories when using relative links.

In my case, the relative link in my root README.md is the following

[datasets info](datasets/README.md)

The preview at https://github.com/user/repo/blob/main/README.md works fine, but

  • the preview at https://github.com/user/repo redirects to https://github.com/user/datasets/README.md
  • the preview at https://github.com/user/repo/tree/main redirects to https://github.com/user/repo/tree/datasets/README.md while all the other relative links in the same file (to Python files, Jupyter notebooks, etc) are resolved correctly in all situations.

aboucaud avatar Aug 23 '23 16:08 aboucaud

Hi, I found relative link is still not working. I am currently using the workaround https://github.com/user/repo/blob/main/file.jl.

rctzeng avatar Nov 02 '23 15:11 rctzeng

This problem occurs for links inside "lists or blockquotes or non-paragraph markdown block". See here. This was described as bug in Github Markdown.

normanius avatar Mar 13 '24 23:03 normanius