Skip to content

Strip #:~:text= directives when validating anchor links#46

Open
oprypin wants to merge 1 commit intonextfrom
anchor-directive
Open

Strip #:~:text= directives when validating anchor links#46
oprypin wants to merge 1 commit intonextfrom
anchor-directive

Conversation

@oprypin
Copy link
Member

@oprypin oprypin commented Mar 17, 2026

With file.md#:~:text=focus_on_text, there should be nothing to validate.
With file.md#anchor:~:text=focus_on_text, 'anchor' is the part to validate.

This implements support for (stripping) https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments#syntax

With `file.md#:~:text=focus_on_text`, there should be nothing to validate.
With `file.md#anchor:~:text=focus_on_text`, 'anchor' is the part to validate.

Based on https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments#syntax
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.

1 participant