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

Heading enumeration should be limited by some option #65

Closed
ldeluigi opened this issue Jan 17, 2022 · 3 comments
Closed

Heading enumeration should be limited by some option #65

ldeluigi opened this issue Jan 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@ldeluigi
Copy link

I'd like an option to limit the depth for heading enumeration, in order to avoid ugly X.Y.Z.W codes before level 4 headings.

Example:

- print-site:
    enumerate_depth: 3

->

1.2 Level 2 heading
1.2.3 Level 3 heading
Level 4 heading
Level 5 Heading

@ldeluigi ldeluigi changed the title Heading enumeration should be limited by some options Heading enumeration should be limited by some option Jan 17, 2022
@timvink
Copy link
Owner

timvink commented Jan 18, 2022

Sounds like a good addition.

I could implement this by separating out the enumeration into separate .css files and optionally including them depending on the configured depth. enumerate_headings_depth: 6 would a better option name.

Will pick this up next time I work on the plugin. In the meantime I'd also be willing to accept PRs, of course.

@timvink timvink added the enhancement New feature or request label Jan 18, 2022
timvink added a commit that referenced this issue Jan 28, 2022
Add enumerate_heading_depth option, see #65
@timvink
Copy link
Owner

timvink commented Jan 28, 2022

Released in https://github.com/timvink/mkdocs-print-site-plugin/releases/tag/v2.3

Let me know if it works for you :)

@timvink timvink closed this as completed Jan 28, 2022
@ldeluigi
Copy link
Author

It works, thanks!

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