Skip to content

Custom section (header) IDΒ #1141

@lo48576

Description

@lo48576

It would be useful if the section IDs can be specified manually (such as # About foo {#foo}, supported by many processors including zola).

For example, it would be useful when:

  • Some of section names are very long, but wants IDs to be short enough.
  • Attempt to prevent future link breakage, which can be caused by sections renaming or mdbook algorithm change.
  • Providing multiple sites with different languages, but wants URIs (especially paths and fragments) to be coherent English.

Users can already control paths by setting filename, then it is natural if users can also control fragment part of URIs (/user/specified/path.html#THIS-PART).

Is this feature simply not implemented or considered yet, or are there some reasons to object to this feature?

Maybe related: #880

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinksArea: Issues with linksA-MarkdownArea: Issues with markdown

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions