mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Add MD052/reference-links-images and MD053/link-image-reference-definitions for reporting issues with link and image references (fixes #144, fixes #390, fixes #425, fixes #456).
This commit is contained in:
parent
2c947abf7b
commit
c5ca661b96
21 changed files with 1333 additions and 65 deletions
|
|
@ -269,5 +269,11 @@
|
|||
},
|
||||
|
||||
// MD051/link-fragments - Link fragments should be valid
|
||||
"MD051": true
|
||||
"MD051": true,
|
||||
|
||||
// MD052/reference-links-images - Reference links and images should use a label that is defined
|
||||
"MD052": true,
|
||||
|
||||
// MD053/link-image-reference-definitions - Link and image reference definitions should be needed
|
||||
"MD053": true
|
||||
}
|
||||
|
|
@ -243,4 +243,10 @@ MD050:
|
|||
style: "consistent"
|
||||
|
||||
# MD051/link-fragments - Link fragments should be valid
|
||||
MD051: true
|
||||
MD051: true
|
||||
|
||||
# MD052/reference-links-images - Reference links and images should use a label that is defined
|
||||
MD052: true
|
||||
|
||||
# MD053/link-image-reference-definitions - Link and image reference definitions should be needed
|
||||
MD053: true
|
||||
|
|
@ -899,6 +899,22 @@
|
|||
"link-fragments": {
|
||||
"$ref": "#/properties/MD051"
|
||||
},
|
||||
"MD052": {
|
||||
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"reference-links-images": {
|
||||
"$ref": "#/properties/MD052"
|
||||
},
|
||||
"MD053": {
|
||||
"description": "MD053/link-image-reference-definitions - Link and image reference definitions should be needed",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"link-image-reference-definitions": {
|
||||
"$ref": "#/properties/MD053"
|
||||
},
|
||||
"headings": {
|
||||
"description": "headings - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
|
||||
"type": "boolean",
|
||||
|
|
@ -935,7 +951,7 @@
|
|||
"default": true
|
||||
},
|
||||
"links": {
|
||||
"description": "links - MD011, MD034, MD039, MD042, MD051",
|
||||
"description": "links - MD011, MD034, MD039, MD042, MD051, MD052, MD053",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
|
|
@ -1015,7 +1031,7 @@
|
|||
"default": true
|
||||
},
|
||||
"images": {
|
||||
"description": "images - MD045",
|
||||
"description": "images - MD045, MD052, MD053",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue