mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD051/link-fragments to handle backslash-escaping in heading text (fixes #984).
This commit is contained in:
parent
ca9930464e
commit
941769f204
5 changed files with 35 additions and 25 deletions
|
|
@ -13,7 +13,9 @@ const anchorRe = /\{(#[a-z\d]+(?:[-_][a-z\d]+)*)\}/gu;
|
|||
|
||||
// Sets for filtering heading tokens during conversion
|
||||
const childrenExclude = new Set([ "image", "reference", "resource" ]);
|
||||
const tokensInclude = new Set([ "codeTextData", "data" ]);
|
||||
const tokensInclude = new Set(
|
||||
[ "characterEscapeValue", "codeTextData", "data" ]
|
||||
);
|
||||
|
||||
/**
|
||||
* @typedef {import("../helpers/micromark.cjs").Token} Token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue