Skip to content

Imcomplete anchors for non-latin headings in markdown #3843

@nook-ru

Description

@nook-ru

Description

Each heading has an anchor pointing to it, i.e. https://try.gogs.io/nook_ru/test#test-heading

Unfortunately all non-latin characters are stripped from the heading anchor and replaced with minus sign. So, for example, for cyrillic heading Еще один заголовок anchor will look like #--. GitHub correctly deals with such headings, you can compare same markdown:

  • GitHub renders anchor as #Еще-один-заголовок
  • Gogs gives #-- for the same heading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions