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

fix: Table of Contents with subsequent headers #1215

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Dec 29, 2024

Tracked down the issue w/ that load-bearing comment: that trailing \n+ gobbles up all blank lines, not allowing the subsequent title to be detected (as we're not using the multiline flag). marked also removes extraneous newlines (as it should, IMO) so just inserting extra blank lines wouldn't help (it'd be super fiddly & error prone to rely on anyhow).

This can also be seen on the Hooks page, useId doesn't show up in the ToC at all.

@rschristian rschristian merged commit a1daeee into master Dec 29, 2024
5 checks passed
@rschristian rschristian deleted the fix/useId-toc branch December 29, 2024 08:39
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