Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude or ignore specific headings by text #46

Open
kriskhaira opened this issue Jun 21, 2024 · 0 comments
Open

Exclude or ignore specific headings by text #46

kriskhaira opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kriskhaira
Copy link

kriskhaira commented Jun 21, 2024

Hi. It would be useful to be able to exclude a specific heading by text. The ideal API would be as follows (the last line):

style: nestedList
exclude: ["Contents", "References"]

This would then hide only the subheadings called "Contents" and "References" from the rendered TOC. An alternative syntax would be to use regex.

For a real-world example of how this would work in other systems, check out Confluence's Table of Contents macro (screenshot below).

Image of Confluence' Table of Contents' exclude headings feature
@kriskhaira kriskhaira added the enhancement New feature or request label Jun 21, 2024
@kriskhaira kriskhaira changed the title Exclude specific headings by text Exclude or ignore specific headings by text Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants