mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-05 23:48:49 +01:00
Update MD040/fenced-code-language to add language_only parameter to reject extra data in info string.
This commit is contained in:
parent
718de432f3
commit
72439f42c6
13 changed files with 176 additions and 1 deletions
|
|
@ -209,7 +209,9 @@
|
|||
// MD040/fenced-code-language - Fenced code blocks should have a language specified
|
||||
"MD040": {
|
||||
// List of languages
|
||||
"allowed_languages": []
|
||||
"allowed_languages": [],
|
||||
// Require language only
|
||||
"language_only": false
|
||||
},
|
||||
|
||||
// MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
|
||||
|
|
|
|||
|
|
@ -191,6 +191,8 @@ MD039: true
|
|||
MD040:
|
||||
# List of languages
|
||||
allowed_languages: []
|
||||
# Require language only
|
||||
language_only: false
|
||||
|
||||
# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
|
||||
MD041:
|
||||
|
|
|
|||
|
|
@ -356,6 +356,11 @@ for (const rule of rules) {
|
|||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"language_only": {
|
||||
"description": "Require language only",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
};
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -682,6 +682,11 @@
|
|||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"language_only": {
|
||||
"description": "Require language only",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue