mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add MD011 with tests, pass empty env to markdown-it.parse.
This commit is contained in:
parent
812f5bdfff
commit
f35d690fb1
3 changed files with 26 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue