mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Update MD009/no-trailing-spaces to remove unnecessary sorting, add additional test cases.
This commit is contained in:
parent
f284233f9a
commit
54acae87ea
5 changed files with 79 additions and 4 deletions
|
|
@ -32,7 +32,6 @@ module.exports = {
|
|||
paragraphLineNumbers.push(i + 1);
|
||||
}
|
||||
});
|
||||
paragraphLineNumbers.sort(numericSortAscending);
|
||||
filterTokens(params, "inline", (token) => {
|
||||
if (token.children.some((child) => child.type === "code_inline")) {
|
||||
const tokenLines = params.lines.slice(token.map[0], token.map[1]);
|
||||
|
|
@ -44,7 +43,6 @@ module.exports = {
|
|||
});
|
||||
}
|
||||
});
|
||||
codeInlineLineNumbers.sort(numericSortAscending);
|
||||
}
|
||||
const expected = (brSpaces < 2) ? 0 : brSpaces;
|
||||
forEachLine(lineMetadata(), (line, lineIndex, inCode) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue