Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lululeon opened this issue Feb 2, 2024 · 3 comments
Open

Comments

@lululeon
Copy link

lululeon commented Feb 2, 2024

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
Copy link

normanius commented Mar 13, 2024

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
Copy link

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

@AtmoFX
Copy link

AtmoFX commented May 20, 2024

@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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants