Update MD009/no-trailing-spaces to include strict mode (fixes #216).

This commit is contained in:
David Anson 2019-12-09 22:05:57 -08:00
parent a9251c533f
commit 6f3c67f760
10 changed files with 193 additions and 11 deletions

View file

@ -15,7 +15,6 @@ module.exports = {
if (token.type === "paragraph_open") {
return function inParagraph(t) {
// Always paragraph_open/inline/paragraph_close,
// omit (t.type === "inline")
const children = t.children.filter(function notEmptyText(child) {
return (child.type !== "text") || (child.content !== "");
});