Skip to content

fix: Ignore comments when detecting stubs, fixes #982#992

Merged
LeaVerou merged 1 commit into
mainfrom
stubs-comments
Jul 14, 2026
Merged

fix: Ignore comments when detecting stubs, fixes #982#992
LeaVerou merged 1 commit into
mainfrom
stubs-comments

Conversation

@LeaVerou

@LeaVerou LeaVerou commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

A Markdown guide with just a frontmatter and HTML comments and nothing else should still be counted as a stub.

Tiny PR, only +2/-2!

Note: stripping HTML comments (per #983) from guides that do have content is more involved and requires full Markdown parsing, so is out of scope for this PR.

A Markdown document with just a frontmatter and HTML comments and nothing else should still be counted as a stub.
@LeaVerou LeaVerou merged commit 13f58d5 into main Jul 14, 2026
9 checks passed
@LeaVerou LeaVerou deleted the stubs-comments branch July 14, 2026 10:56
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