Skip to content

Conversation

@xbinaryx
Copy link
Contributor

Prerequisites checklist

What is the purpose of this pull request?

This PR fixes the handling of heading slugs in the no-missing-link-fragments rule to ensure that HTML nodes are excluded from the generated anchor fragments.

What changes did you make? (Give an overview)

Updated the heading text extraction logic in no-missing-link-fragments to skip HTML nodes when generating slugs for headings.

Related Issues

Fixes #439

Is there anything you'd like reviewers to focus on?

Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@snitin315 snitin315 merged commit e4dcf6a into eslint:main Jun 26, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: no-missing-link-fragments fails if heading contained emoji

2 participants