Skip to content

anchors don't work when contains punctuation marks just like or ( #26367

Closed
@lazyky

Description

@lazyky

Description

Markdown Heading ID contains Unicode is inconsistent with Github.
For #### test(1) in gitea , the id is "user-content-test-1" and in github it is "user-content-test1"

The markdown below is available for jumping on github, but not for gitea.

#### test(1)
to [test(1)](#test1)

gitea

id = "user-content-test-1"
8d42bfb9f7ea6f43e4f3b6b8f339aff

github

id = "user-content-test1"
89b1f42dcd9174ec189487dd55057a4

Gitea Version

1.20.2

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?

I was able to reproduce it using try.gitea.io.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions