Add MD011 with tests, pass empty env to markdown-it.parse.

This commit is contained in:
David Anson 2015-03-03 18:28:59 -08:00
parent 812f5bdfff
commit f35d690fb1
3 changed files with 26 additions and 1 deletions

View file

@ -17,7 +17,7 @@ function lintFile(file, config, callback) {
if (err) {
callback(err);
} else {
var tokens = md.parse(contents);
var tokens = md.parse(contents, {});
var lines = contents.split(/\r\n|\r|\n/g);
tokens.forEach(function forToken(token) {
if (token.lines) {