Skip to content

Support Chinese in html permalink href #13800

@StageDog

Description

@StageDog

Is your feature request related to a problem? Please describe.
html permalinks in Chinese docs are not permanent.
For example, given a <h2> titled as "调试方法", sphinx might generate a href="id3" for it; when I insert some <h2>s before it, "调试方法" goes to href="id6" or href="id{x}".
In a result, I'm always frustrated that I can't share my audience a permanent link that jumps to the exact section while keeping updating my docs.

docs generated by Sphinx fail to include Chinese into href ids

https://sillytavern-stage-girls-dog.readthedocs.io/工具经验/角色阶段/#id8

Image
docs generated by Vitepress work well

https://n0vi028.github.io/JS-Slash-Runner-Doc/guide/关于酒馆助手/介绍.html#酒馆助手-tavern-helper

Image

Describe the solution you'd like
Put Chinese in headings and figure captions into their href ids.

Describe alternatives you've considered
If this is not resolved, I may have to reluctantly migrate to other documentation tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions