Update previous commit for MD051/link-fragments to rename, refactor, add support for HTML anchors, and validate against

markdown-link-check (fixes #253).
This commit is contained in:
David Anson 2022-04-10 05:37:57 +00:00
parent 33ee1cd85e
commit db5d9f6dbb
21 changed files with 355 additions and 181 deletions

View file

@ -264,6 +264,6 @@
"style": "consistent"
},
// MD051/valid-link-fragments - Link fragments should be valid
// MD051/link-fragments - Link fragments should be valid
"MD051": true
}

View file

@ -238,5 +238,5 @@ MD050:
# Strong style should be consistent
style: "consistent"
# MD051/valid-link-fragments - Link fragments should be valid
# MD051/link-fragments - Link fragments should be valid
MD051: true

View file

@ -879,14 +879,12 @@
"$ref": "#/properties/MD050"
},
"MD051": {
"description": "MD051/valid-link-fragments - Link fragments should be valid",
"description": "MD051/link-fragments - Link fragments should be valid",
"type": "boolean",
"default": true
},
"valid-link-fragments": {
"description": "MD051/valid-link-fragments - Link fragments should be valid",
"type": "boolean",
"default": true
"link-fragments": {
"$ref": "#/properties/MD051"
},
"headings": {
"description": "headings - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",