Add synchronous version of the API, with tests and documentation.

This commit is contained in:
David Anson 2015-03-20 00:09:55 -07:00
parent 200dddf3d1
commit e557f3a97f
6 changed files with 132 additions and 18 deletions

View file

@ -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());