mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Add new MD054/link-image-style rule (in-progress PR, no generated files).
This commit is contained in:
parent
20b8af5054
commit
460836445c
14 changed files with 296 additions and 11 deletions
|
|
@ -519,6 +519,24 @@ for (const rule of rules) {
|
|||
}
|
||||
};
|
||||
break;
|
||||
case "MD054":
|
||||
scheme.properties = {
|
||||
"style": {
|
||||
"description": "Link or image style should be consistent",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mixed",
|
||||
"autolink_only",
|
||||
"inline_only",
|
||||
"reference_only",
|
||||
"inline_or_reference",
|
||||
"inline_or_autolink",
|
||||
"reference_or_autolink"
|
||||
],
|
||||
"default": "mixed"
|
||||
}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
custom = false;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue