Skip to content

Heading slugs could be friendlier #1552

@dleeftink

Description

@dleeftink

When linking to headings on a Framework page, slugs are generated in a manner inconsistent with other static site generators/GitHub.
For instance, when linking to a heading in a source file on GitHub will make the link incongruent with the page URL slug under the current sanitisation scheme:

https://github.com/suptext/suptext.github.io/blob/main/code/from/2024/07/26/building-quickset.md#whats-your-path
https://suptext.is/from/2024/07/26/building-quickset#what%E2%80%99s-your-path%3F

Instead of:

https://suptext.is/from/2024/07/26/building-quickset#whats-your-path

I think the way GitHub sanitises heading slugs is the way to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions