-
Notifications
You must be signed in to change notification settings - Fork 479
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
Support UnitRange for Depth configuration in at-contents
block
#1890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, forgot about that. Yea that should be fine (although you will have to look up the default max depth even when you only want to change the default min). |
This patch adds support for passing `UnitRange`s to the `Depth` setting in `at-contents`. This makes it possible to also limit the minimum header level that should be included. `Depth = 2:3` would include only headers with level 2-3, and exclude, in particular, level 1. Fixes #245.
MinDepth
configuration to at-contents
blockat-contents
block
at-contents
blockat-contents
block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment, but LGTM!
Co-authored-by: Morten Piibeleht <morten.piibeleht@gmail.com>
This patch adds support for
MinDepth
inat-contents
for specifyingthe minimum header level depth that should be shown, similar to
Depth
.This is useful mostly for single-page content blocks, since you can then
filter out the superfluous level 1 header.
Edit by @mortenpi: close #245