mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01: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
|
|
@ -16,7 +16,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