Update MD051/link-fragments to include math text when creating heading fragments (fixes #1152).

This commit is contained in:
David Anson 2024-03-17 14:31:49 -07:00
parent 3acf7da822
commit fdd8ba1974
5 changed files with 56 additions and 40 deletions

View file

@ -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" ]
);
/**