mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-16 15:06:31 +01:00
Make resultVersion 3 (report multiple errors per line, include fixInfo) the default.
This commit is contained in:
parent
9b3fd3d16b
commit
9310713da1
9 changed files with 44 additions and 31 deletions
|
|
@ -52,8 +52,7 @@
|
|||
"config": {
|
||||
"MD013": false
|
||||
},
|
||||
"handleRuleFailures": true,
|
||||
"resultVersion": 3
|
||||
"handleRuleFailures": true
|
||||
};
|
||||
allLintErrors = window.markdownlint.sync(options).content;
|
||||
violations.innerHTML = allLintErrors.map(function mapResult(result) {
|
||||
|
|
|
|||
|
|
@ -1808,7 +1808,7 @@ function lintInput(options, synchronous, callback) {
|
|||
var handleRuleFailures = !!options.handleRuleFailures;
|
||||
var noInlineConfig = !!options.noInlineConfig;
|
||||
var resultVersion = (options.resultVersion === undefined) ?
|
||||
2 : options.resultVersion;
|
||||
3 : options.resultVersion;
|
||||
var md = markdownIt({ "html": true });
|
||||
var markdownItPlugins = options.markdownItPlugins || [];
|
||||
markdownItPlugins.forEach(function forPlugin(plugin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue