Skip to content

Support for Linking to Headings in Markdown #4023

@d42ohpaz

Description

@d42ohpaz

Requirements

  • This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
  • Please check to see if this request (or a similar one) already exists.
  • It's a single feature. Please don't request multiple features in one issue.

Describe the feature you'd like

I could not find any documentation on this feature, nor was I able to find any existing issues (current or past) describing this feature.

It would be helpful for longer posts to be able to link to headings (h1...h6) from anywhere in the document. This could be done by normalizing the heading into a slug (e.g., Foo Bar => #foo-bar or Hello, World => #hello-world) and using that as the HTML id attribute. Once the id attribute exists, simply creating a link (e.g., (Foo Bar)[#foo-bar]) should allow the browser to do the Right Thing(TM).

Thank you,

- @dohpaz42@lemmy.world

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