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

feat(toc): add toc item filter #1195

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Conversation

champignoom
Copy link
Contributor

Currently all nodes whose type ends with _prefix are extracted into the ToC window, including footnotes, whose node type is single_footnote_prefix.

This PR adds a customizable filter function for ToC items, which only allows headings into the ToC by default.

@vhyrro vhyrro merged commit 5c42084 into nvim-neorg:main Nov 27, 2023
1 of 2 checks passed
benlubas pushed a commit to benlubas/neorg that referenced this pull request Jan 11, 2024
Co-authored-by: vhyrro <76052559+vhyrro@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants