Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slug generation for headings in web-viewed README.md in GitHub repos #361

@vadimkantorov

Description

@vadimkantorov

Hi!

Am I correct that this library is being used by GitHub for rendering README.md's and for heading slug generation? Or is https://github.com/kivikakk/comrak actually getting used for this?

There are a lot of quirks in this slug generation (e.g. how punctuation / emojis / hash-sign / cyrillic / latin-1 / spaces are getting replaced by hyphens and if multiple hyphens get contracted to a single hyphen in the middle/beginning/end of slug), but being able to replicate it exactly is important sometimes (for Markdown generation and generating ToC's / links to certain headings)

Thank you :)

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