mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add MD033 with tests, rename test file.
This commit is contained in:
parent
1da7064094
commit
495fbac6fd
9 changed files with 49 additions and 5 deletions
12
lib/rules.js
12
lib/rules.js
|
|
@ -607,5 +607,17 @@ module.exports = [
|
|||
prevLine = line;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "MD033",
|
||||
"desc": "Inline HTML",
|
||||
"tags": [ "html" ],
|
||||
"func": function MD033(params, errors) {
|
||||
filterTokens(params.tokens, "html_inline", "html_block")
|
||||
.forEach(function forToken(token) {
|
||||
errors.push(token.lineNumber);
|
||||
});
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue