Skip to content

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

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

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

Conversation

@oprypin
Copy link
Copy Markdown
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
@oprypin oprypin marked this pull request as draft March 20, 2026 20:01
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