We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[x]
A markdown link with anchor is rendered as a html URL page%23anchor instead of page#anchor. On https://try.gitea.io/g/test-anchor-bug/src/branch/master/README.md the link to "foo.md#bar" is https://try.gitea.io/g/test-anchor-bug/src/branch/master/foo.md%23bar but should be https://try.gitea.io/g/test-anchor-bug/src/branch/master/foo.md#bar
page%23anchor
page#anchor
The README.md content:
# test-anchor-bug * [link bug 1](foo.md#bar) * [link bug 2][bug2] [bug2]: foo.md#bar
Screenshot is not usefull.
The text was updated successfully, but these errors were encountered:
FYI,
I'm using nginx as frontal and gitea as backend. My current workaround for this bug is:
server { server_name my.domain.tld; location /gitea/ { # workaround about markdown anchor issue if ($request_uri ~ ^(/.*\.md)%23(.*)$ ) { return 301 $scheme://$server_name$1#$2; } # end of workaround proxy_pass http://localhost:3000/; } }
Sorry, something went wrong.
Just ran into this after generating some API docs in markdown. Basically all the relative links with anchors are broken.
Successfully merging a pull request may close this issue.
[x]
):Description
A markdown link with anchor is rendered as a html URL
page%23anchor
instead ofpage#anchor
.On https://try.gitea.io/g/test-anchor-bug/src/branch/master/README.md
the link to "foo.md#bar" is
https://try.gitea.io/g/test-anchor-bug/src/branch/master/foo.md%23bar
but should be
https://try.gitea.io/g/test-anchor-bug/src/branch/master/foo.md#bar
The README.md content:
Screenshots
Screenshot is not usefull.
The text was updated successfully, but these errors were encountered: