-
Notifications
You must be signed in to change notification settings - Fork 70
feat: add no-missing-link-fragments rule #380
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
base: main
Are you sure you want to change the base?
feat: add no-missing-link-fragments rule #380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking this up. This looks like a good start. I have added a few suggestions on documentation & few false postives. I think there are few more cases we should cover that MD051 handles as well:
-
HTML ids:
<a id="bookmark"></a> [Link](#bookmark) // valid
-
#top
: HTML links to #top scroll to the top of a document.[Link](#top)
-
Custom fragment syntax used by GitHub to highlight specific content in a document.
[Link](#L20) // Valid [Link](#L19C5-L21C11) // Valid
67f7cc1
to
b051c1a
Compare
1301dba
to
a36b406
Compare
@SwetaTanwar please double-check the merge conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Would like @lumirlumir to review before merging.
Prerequisites checklist
What is the purpose of this pull request?
This PR adds a new rule
no-missing-link-fragments
to ensure there is no missing link fragment in the markdownWhat changes did you make? (Give an overview)
Added the
no-missing-link-fragments
rule, along with documentation and tests.Related Issues
fixes #369
Is there anything you'd like reviewers to focus on?