-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug
Description
Description
in a markdown file, put the html heading
<h1>Heading without ID</h1>
then gitea blob API will generate the wrong permalink #
for that heading.
github blob API would generate the permalink #heading-without-id
if the html heading has an id
gitea blob API renders the correct permalink #heading-with-id
<h1 id="heading-with-id">Heading with ID</h1>
compare:
- https://github.com/milahu/gitea-html-in-markdown-render-bug
- https://try.gitea.io/milahu/gitea-html-in-markdown-render-bug # gitea 1.22.0
- https://codeberg.org/milahu/gitea-html-in-markdown-render-bug
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
im using some gitea instances, i dont know how they are running gitea...
Database
None
yp05327
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug