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

Only consider possible heading if the tag wraps the entire text content #653

Conversation

pattonwebz
Copy link
Member

Links that are modified by the New Window Warning plugin contain an <i> tag, which highlighted the possible header check was checking the containing tags incorrectly. This PR updates it to check if the tag wraps the entire text instead of simply checking it exists inside the scanned node.

Fixes: #652

Copy link
Member

@SteveJonesDev SteveJonesDev left a comment

Choose a reason for hiding this comment

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

Looks good.

@pattonwebz pattonwebz merged commit 29d440d into develop Jun 5, 2024
16 checks passed
@pattonwebz pattonwebz deleted the william/652/new-window-warnings-incorrectly-flagged-as-possible-headings branch June 5, 2024 17:00
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.

Links modified by the New Window Warning plugin wrongly flagged as possible headers
2 participants