Update MD051/link-fragments to handle backslash-escaping in heading text (fixes #984).

This commit is contained in:
David Anson 2023-09-18 22:20:44 -07:00
parent ca9930464e
commit 941769f204
5 changed files with 35 additions and 25 deletions

View file

@ -6229,7 +6229,7 @@ var anchorRe = /\{(#[0-9a-z]+(?:[\x2D_][0-9a-z]+)*)\}/g;
// Sets for filtering heading tokens during conversion
var childrenExclude = new Set(["image", "reference", "resource"]);
var tokensInclude = new Set(["codeTextData", "data"]);
var tokensInclude = new Set(["characterEscapeValue", "codeTextData", "data"]);
/**
* @typedef {import("../helpers/micromark.cjs").Token} Token