Refactor use of micromark so token stream is authentic by shimming undefined link reference handling, remove no-longer-necessary parse operation in MD034.

This commit is contained in:
David Anson 2024-10-21 20:56:22 -07:00
parent 1d9bd4725d
commit 38b4ec0c2f
6 changed files with 369 additions and 122 deletions

View file

@ -499,7 +499,7 @@ function lintContent(
// Parse content into parser tokens
const micromarkTokens = micromark.parse(
content,
{ "freezeTokens": customRulesPresent, "shimReferences": true }
{ "freezeTokens": customRulesPresent }
);
// Hide the content of HTML comments from rules
const preClearedContent = content;