mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-19 23:40:12 +01:00
fixup! Allow trailing spaces in code blocks
This commit is contained in:
parent
2e391a5ca1
commit
2722940f3c
3 changed files with 4 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ module.exports = {
|
|||
forEachLine(lineMetadata(), (line, lineIndex, inCode, onFence) => {
|
||||
inFencedCode += onFence;
|
||||
const lineNumber = lineIndex + 1;
|
||||
if ((!inCode || inFencedCode !== 0) && trailingSpaceRe.test(line) &&
|
||||
if ((!inCode || inFencedCode) && trailingSpaceRe.test(line) &&
|
||||
!includesSorted(listItemLineNumbers, lineNumber)) {
|
||||
const actual = line.length - line.trimRight().length;
|
||||
if (expected !== actual) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue