Update MD052/reference-links-images to add ignored_labels parameter and default to ignoring GFM task list items (fixes #1524).

This commit is contained in:
David Anson 2025-04-27 22:36:07 -07:00
parent c413ac9a88
commit 328506e6c8
19 changed files with 357 additions and 12 deletions

View file

@ -275,6 +275,10 @@
// MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md052.md
"MD052": {
// Ignored link labels
"ignored_labels": [
"x"
],
// Include shortcut syntax
"shortcut_syntax": false
},

View file

@ -247,6 +247,9 @@ MD051:
# MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md052.md
MD052:
# Ignored link labels
ignored_labels:
- "x"
# Include shortcut syntax
shortcut_syntax: false

View file

@ -493,6 +493,14 @@ for (const rule of rules) {
break;
case "MD052":
scheme.properties = {
"ignored_labels": {
"description": "Ignored link labels",
"type": "array",
"items": {
"type": "string"
},
"default": [ "x" ]
},
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",

View file

@ -1549,6 +1549,16 @@
],
"default": true,
"properties": {
"ignored_labels": {
"description": "Ignored link labels",
"type": "array",
"items": {
"type": "string"
},
"default": [
"x"
]
},
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
@ -1565,6 +1575,16 @@
],
"default": true,
"properties": {
"ignored_labels": {
"description": "Ignored link labels",
"type": "array",
"items": {
"type": "string"
},
"default": [
"x"
]
},
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",

View file

@ -1549,6 +1549,16 @@
],
"default": true,
"properties": {
"ignored_labels": {
"description": "Ignored link labels",
"type": "array",
"items": {
"type": "string"
},
"default": [
"x"
]
},
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
@ -1565,6 +1575,16 @@
],
"default": true,
"properties": {
"ignored_labels": {
"description": "Ignored link labels",
"type": "array",
"items": {
"type": "string"
},
"default": [
"x"
]
},
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",