Skip to content

Conversation

@derlin
Copy link
Owner

@derlin derlin commented Sep 18, 2025

Ensure a header that is within an HTML comment (<!-- -->) doesn't show up in the TOC.

The logic is similar to the code blocks: if a block comment start (<!-- with the closing --> not on the same line), ignore all the next lines for TOC generation until a closing --> is found.

Closes #75

Ensure a header that is within an HTML comment (`<!-- -->`) doesn't
show up in the TOC.
@derlin derlin merged commit 49e7466 into main Sep 30, 2025
2 checks passed
@derlin derlin deleted the 75-html-comments branch September 30, 2025 11:18
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.

[BUG] Titles in HTML comments (eg. <!-- -->) end up in the TOC

2 participants