Update MD033/no-inline-html to ignore HTML in labels for reference links/images (fixes #658).

This commit is contained in:
David Anson 2022-12-06 22:57:45 -08:00
parent cba5e8d340
commit 2146bbae5f
6 changed files with 101 additions and 6 deletions

View file

@ -931,7 +931,9 @@ function getReferenceLinkImageData(lineMetadata) {
referenceData.push([
lineIndex,
referenceIndex,
matchString.length
matchString.length,
matchText.length,
matchLabel.length
]);
references.set(label, referenceData);
}