github / markup

Determines which markup library to use to render a content file (e.g. README) on GitHub
MIT License
5.87k stars 3.39k forks source link

Markdown relative links broken when they occur inside a markdown table. #1773

Open lululeon opened 9 months ago

lululeon commented 9 months ago

Links to a resource at:

https://github.com/username/reponame/blob/main/docs/foo.md

are rendered as variants of

https://github.com/username/reponame/tree/docs/foo.md
https://github.com/username/docs/foo.md

when written in markdown inside a markdown table as either of:

[my link](./docs/foo.md)
[my link](docs/foo.md)

Example:

| blah1 | blah2|
|--------|-------|
| foobar | look at [my link](./docs/foo.md). |
| foobar | or even [my link](docs/foo.md). |
normanius commented 8 months ago

See this discussion here. The behavior was described as a bug for markdown blocks that are not normal paragraph. I hope this will be fixed soon. Relative paths are so useful!

normanius commented 8 months ago

There are may link-related open issues. I wonder why this has not been addressed yet.

AtmoFX commented 6 months ago

@normanius : It also affects normal paragraphs, unfortunately. On my Readme page, I ended up with a mix of the first few relative links working, then broken links (obviously all as normal paragraphs). I had to change everything as absolute paths...

github-actions[bot] commented 4 months ago

Stale issue message

ReenigneArcher commented 4 months ago

bump

github-actions[bot] commented 2 months ago

Stale issue message

ReenigneArcher commented 2 months ago

bump

github-actions[bot] commented 15 hours ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AtmoFX commented 10 hours ago

Still not...