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.
13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
const lintRules = require('./.markdownlintrc');
|
|
const linter = require('../linter');
|
|
const argv = require('yargs').argv;
|
|
|
|
const isMDRE = /.*\.md$/;
|
|
|
|
const lint = linter(lintRules);
|
|
|
|
const files = argv._.filter(arg => isMDRE.test(arg));
|
|
files.forEach(path => lint({ path: path }));
|
|
|
|
module.exports = lint;
|