Add fenced code block style rule (#224) (fixes #223).

This commit is contained in:
Marius Lichtblau 2019-10-08 21:10:02 -07:00 committed by David Anson
parent fd06a50ee5
commit e9b3cc4c18
17 changed files with 232 additions and 25 deletions

View file

@ -334,6 +334,20 @@ rules.forEach(function forRule(rule) {
}
};
break;
case "MD048":
scheme.properties = {
"style": {
"description": "Code fence syle",
"type": "string",
"enum": [
"consistent",
"backtick",
"tilde"
],
"default": "consistent"
}
};
break;
default:
custom = false;
break;

View file

@ -1339,6 +1339,48 @@
"type": "boolean",
"default": true
},
"MD048": {
"description": "MD048/code-fence-style - Code fence style",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Code fence syle",
"type": "string",
"enum": [
"consistent",
"backtick",
"tilde"
],
"default": "consistent"
}
},
"additionalProperties": false
},
"code-fence-style": {
"description": "MD048/code-fence-style - Code fence style",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Code fence syle",
"type": "string",
"enum": [
"consistent",
"backtick",
"tilde"
],
"default": "consistent"
}
},
"additionalProperties": false
},
"headings": {
"description": "headings - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
"type": "boolean",
@ -1390,7 +1432,7 @@
"default": true
},
"code": {
"description": "code - MD014, MD031, MD038, MD040, MD046",
"description": "code - MD014, MD031, MD038, MD040, MD046, MD048",
"type": "boolean",
"default": true
},