mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[PR #495] [CLOSED] feat(rules): add valid-link-fragments #881
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#881
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DavidAnson/markdownlint/pull/495
Author: @theoludwig
Created: 1/25/2022
Status: ❌ Closed
Base:
next← Head:feat/add-no-dead-relative-links📝 Commits (5)
53a99d3feat(rules): addno-dead-relative-linksc0c30d1feat(rules): addno-dead-hash-links-within-document22a7e16fix: address some review feedbacks371d29bdocs(rules): add link for #m051 sectionf394468fix: address some feedback again📊 Changes
13 files changed (+250 additions, -24 deletions)
View changed files
📝
README.md(+2 -1)📝
demo/markdownlint-browser.js(+54 -1)📝
doc/Rules.md(+27 -2)➕
lib/md051.js(+46 -0)📝
lib/rules.js(+2 -1)📝
schema/.markdownlint.jsonc(+4 -1)📝
schema/.markdownlint.yaml(+4 -1)📝
schema/markdownlint-config-schema.json(+11 -1)📝
test/detailed-results-MD041-MD050.results.json(+26 -0)📝
test/empty-links.md(+8 -6)📝
test/markdownlint-test.js(+3 -3)📝
test/spaces_inside_codespan_elements.md(+7 -7)➕
test/valid-link-fragments.md(+56 -0)📄 Description
Hey! 👋
This PR adds a new built-in rule:
valid-link-fragmentsto ensure that link fragments are valid within the document.Even if you recommend first implementing it as a custom rule as an npm package, I think that we could instead disable the rule by default and let the user enable it in their config, and if successful, we enable it by default (in the current implementation of the PR, the rule is enabled by default).
I left some comments to discuss the "know issues" and things that could be implemented in this PR.
fix #253
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.