Skip to content

TOC: Include permalink for headers out of toc_depth range #1107

Description

@jayqi

I would like to be able to enable permalinks for headers out of the toc_depth range. Currently only headers within the range get permalinks when permalink is enabled. (Markdown==3.3.3)

My use case is that I have pages that have a lot of headers. In order for the TOC to be not too large, I use toc_depth to only include higher levels in my TOC. However, I would like users to still be able to directly link to the out-of-range headers if they need to.

More concretely, I have API documentation for modules. My TOC only goes down to class names, as including method names would be too much, but I'd still like users to be able to link directly to method headers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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