Skip to content

toc: toc_depth as range #786

Description

@klml

Currently toc_depth defines up to which section level “n” ( <h1> to , where 1 <= n <= 6) to include in the Table of Contents.

Would be nice to have it not only defining up to which but from and up to which section level to include in the Table of Contents.
So you could include section level only from range h2 to h6 to the Table of Contents.

I could pass in a PR, should I change toc_depth to an array or introduce a new config value (e.g. toc_height)?

use case

I want to use h1 as sole document title and so it should not be part of the ToC.

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