mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add options.resultVersion for more detailed error reporting (fixes #23).
This commit is contained in:
parent
3a356467cd
commit
0ca8bc7bb6
11 changed files with 454 additions and 160 deletions
|
@ -24,6 +24,14 @@ markdownlint(options, function callback(err, result) {
|
|||
}
|
||||
});
|
||||
|
||||
// Again, using resultVersion 1 for more detail
|
||||
options.resultVersion = 1;
|
||||
markdownlint(options, function callback(err, result) {
|
||||
if (!err) {
|
||||
console.dir(result, { "colors": true });
|
||||
}
|
||||
});
|
||||
|
||||
// Make a synchronous call, passing true to toString()
|
||||
var result = markdownlint.sync(options);
|
||||
console.log(result.toString(true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue