mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD053/link-image-reference-definitions to handle references within references (i.e., Pandoc-style footnotes), verify Pandoc footnote indent is not treated as comment when markdown-it-footnote plugin is used (fixes #599).
This commit is contained in:
parent
7d1fa55cc4
commit
592a42b0cb
8 changed files with 169 additions and 2 deletions
|
|
@ -836,7 +836,8 @@ function getReferenceLinkImageData(lineMetadata) {
|
|||
} else {
|
||||
definitions.set(label, lineIndex);
|
||||
}
|
||||
exclusions.push([ 0, lineOffsets[lineIndex], line.length ]);
|
||||
const labelLength = linkReferenceDefinitionMatch[0].length;
|
||||
exclusions.push([ 0, lineOffsets[lineIndex], labelLength ]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue