mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD054/link-image-style to split reference parameter into full/collapsed/shortcut parameters (fixes #918).
This commit is contained in:
parent
4390715f4b
commit
063310e51a
21 changed files with 2583 additions and 80 deletions
|
|
@ -285,7 +285,11 @@
|
|||
"autolink": true,
|
||||
// Allow inline links and images
|
||||
"inline": true,
|
||||
// Allow reference links and images
|
||||
"reference": true
|
||||
// Allow full reference links and images
|
||||
"full": true,
|
||||
// Allow collapsed reference links and images
|
||||
"collapsed": true,
|
||||
// Allow shortcut reference links and images
|
||||
"shortcut": true
|
||||
}
|
||||
}
|
||||
|
|
@ -256,5 +256,9 @@ MD054:
|
|||
autolink: true
|
||||
# Allow inline links and images
|
||||
inline: true
|
||||
# Allow reference links and images
|
||||
reference: true
|
||||
# Allow full reference links and images
|
||||
full: true
|
||||
# Allow collapsed reference links and images
|
||||
collapsed: true
|
||||
# Allow shortcut reference links and images
|
||||
shortcut: true
|
||||
|
|
|
|||
|
|
@ -509,8 +509,18 @@ for (const rule of rules) {
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"reference": {
|
||||
"description": "Allow reference links and images",
|
||||
"full": {
|
||||
"description": "Allow full reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"collapsed": {
|
||||
"description": "Allow collapsed reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"shortcut": {
|
||||
"description": "Allow shortcut reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1573,8 +1573,18 @@
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"reference": {
|
||||
"description": "Allow reference links and images",
|
||||
"full": {
|
||||
"description": "Allow full reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"collapsed": {
|
||||
"description": "Allow collapsed reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"shortcut": {
|
||||
"description": "Allow shortcut reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
@ -1599,8 +1609,18 @@
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"reference": {
|
||||
"description": "Allow reference links and images",
|
||||
"full": {
|
||||
"description": "Allow full reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"collapsed": {
|
||||
"description": "Allow collapsed reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"shortcut": {
|
||||
"description": "Allow shortcut reference links and images",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue