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: Add Compact option #43

Merged
merged 1 commit into from
Sep 11, 2023
Merged

feat: Add Compact option #43

merged 1 commit into from
Sep 11, 2023

Conversation

abhinav
Copy link
Owner

@abhinav abhinav commented Sep 11, 2023

Adds a new 'Compact' option.
This option transforms the TOC,
collapsing away empty intermediate levels
when there's a difference of greater than one between levels.

Adds entries to the README and an option to the demo playground
for the new feature.

Testing:
Besides hand-written test cases, rapid-based property tests were added
to verify that the resulting TOC contains all headings.

Resolves #42

Adds a new 'Compact' option.
This option transforms the TOC,
collapsing away empty intermediate levels
when there's a difference of greater than one between levels.

Adds entries to the README and an option to the demo playground
for the new feature.

Testing:
Besides hand-written test cases, rapid-based property tests were added
to verify that the resulting TOC contains all headings.

Resolves #42
@abhinav abhinav merged commit 93b2b34 into main Sep 11, 2023
5 checks passed
@abhinav abhinav deleted the compact branch September 11, 2023 13:12
@meblum
Copy link
Contributor

meblum commented Sep 12, 2023

Thanks for implementing this. Exactly what I needed! Thanks!

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.

Compact option
2 participants