You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
From #40:
Since we are at it, I just realized that it will render empty list items when a "parent" header is not present. For example,
### h3
rendersWould probably make more sense to render existing items only, as the browser will happily render these empty items like so:
Originally posted by @meblum in #40 (comment)
Makes sense to add a "Compact" option to get rid of nodes like these.
TBD: Should Compact be the default or opt-in?
The text was updated successfully, but these errors were encountered: