Update MD040/fenced-code-language to add allowed_languages parameter (fixes #610).

This commit is contained in:
Sam Chen 2022-10-18 03:29:29 +08:00 committed by GitHub
parent c333976a44
commit 01ba757d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 199 additions and 9 deletions

View file

@ -347,6 +347,18 @@ for (const rule of rules) {
}
};
break;
case "MD040":
scheme.properties = {
"allowed_languages": {
"description": "List of languages",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
};
break;
case "MD025":
case "MD041":
scheme.properties = {