Closed
Description
- Gitea version (or commit ref): 1.4.0
- Git version: not related
- Operating system: not related
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes https://try.gitea.io/g/test-anchor-bug/src/branch/master/README.md
- No
- Not relevant
- Log gist:
Description
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
The README.md content:
# test-anchor-bug
* [link bug 1](foo.md#bar)
* [link bug 2][bug2]
[bug2]: foo.md#bar
Screenshots
Screenshot is not usefull.