Skip to content

wrong permalink to html heading in markdown file #27383

Open
@milahu

Description

@milahu

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions