mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
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:
parent
c413ac9a88
commit
328506e6c8
19 changed files with 357 additions and 12 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue