mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add synchronous version of the API, with tests and documentation.
This commit is contained in:
parent
200dddf3d1
commit
e557f3a97f
6 changed files with 132 additions and 18 deletions
|
@ -19,3 +19,7 @@ markdownlint(options, function callback(err, result) {
|
|||
console.dir(result, { "colors": true });
|
||||
}
|
||||
});
|
||||
|
||||
// Make a synchronous call
|
||||
var result = markdownlint.sync(options);
|
||||
console.log(result.toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue