The linter now checks that fences have languages and that those languages are supported by PrismJS. The linter has been extended over the guide with its own set of rules that only validate code fences.
9 lines
362 B
JavaScript
9 lines
362 B
JavaScript
// JS rather than JSON so comments can be included
|
|
|
|
module.exports = {
|
|
"default": false, // the guide has a more permissive set of rules
|
|
"MD031": true, // fenced blocks do need surrounding by newlines
|
|
"MD040": true, // code fence languages should be specificed
|
|
"prism-langs": true, // code fence languages should be supported by PrismJS
|
|
}
|