mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD051/link-fragments to allow HTML's implicit "#top" fragment (fixes #1488).
This commit is contained in:
parent
5749c8dcf7
commit
50300fa7af
7 changed files with 58 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ export default {
|
|||
"parser": "micromark",
|
||||
"function": function MD051(params, onError) {
|
||||
const ignoreCase = params.config.ignore_case || false;
|
||||
const fragments = new Map();
|
||||
/** @type {Map<string, number>} */
|
||||
const fragments = new Map([ [ "#top", 0 ] ]);
|
||||
|
||||
// Process headings
|
||||
const headingTexts = filterByTypesCached([ "atxHeadingText", "setextHeadingText" ]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue