-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Markdown links with whitespace can no longer be resolved in Wiki #10223
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
Comments
I have an identical ticket #10156 In my example I only use 2 markdown pages inside a directory with a space in the name and if we use the link between the to pages Gitea change the stace (%20) to signal + |
That's a different issue - in your case there's improper entities handling when constructing link, but the link does get parsed. This issue tracks case where markdown links are not parsed and constructed at all when they contain space and are not an URL but relative name. |
FWIW this is intentional as it is not allowed in the commonmark spec: https://spec.commonmark.org/0.29/#link-destination
And we now use a new markdown library that follows that spec (as a feature). You can find similar issues for other projects that follow commonmark (or use a library that does). So it's a regression in the sense it used to work when we used a library that didn't follow a standard, but if part of the goal of switching is to follow a standard then I suppose it is intentional now and a breaking change. As per the spec, you can keep the page names with spaces you just need to enclose the links in <> brackets: https://spec.commonmark.org/0.29/#example-486 So in your example it would need to look like:
|
Related: #10291 |
This could probably be closed as a breaking change with switching to a markdown parser that follows a particular spec (which we listed as a reason for switching to it). Comment above is the new "right" way to use short links with spaces according to commonmark |
Agreed, should be documented as breaking change however. |
Closing as this was the expected behavior. Docs will be updated to clarify the case in #10223. |
Uh oh!
There was an error while loading. Please reload this page.
[x]
):Description
Markdown links to other pages in wiki are no longer resolved if they have whitespace in them.
https://try.gitea.io/3red3x/wikitest/wiki/Home
https://try.gitea.io/3red3x/wikitest/wiki/Development-database-snapshot
Screenshots
Raw link:



On Gitea 1.10.2:
On Gitea 1.11.0:
The text was updated successfully, but these errors were encountered: