mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update MD051/link-fragments to include math text when creating heading fragments (fixes #1152).
This commit is contained in:
parent
3acf7da822
commit
fdd8ba1974
5 changed files with 56 additions and 40 deletions
|
@ -6413,7 +6413,7 @@ const lineFragmentRe = /^#(?:L\d+(?:C\d+)?-L\d+(?:C\d+)?|L\d+)$/;
|
|||
// Sets for filtering heading tokens during conversion
|
||||
const childrenExclude = new Set([ "image", "reference", "resource" ]);
|
||||
const tokensInclude = new Set(
|
||||
[ "characterEscapeValue", "codeTextData", "data" ]
|
||||
[ "characterEscapeValue", "codeTextData", "data", "mathTextData" ]
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue