mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Convert params.parsers.name to params.parsers.name.tokens for clarity/flexibility.
This commit is contained in:
parent
80235711f4
commit
c1df46f607
4 changed files with 28 additions and 8 deletions
|
@ -560,8 +560,12 @@ function lintContent(
|
|||
annotateAndFreezeTokens(markdownitTokens, lines);
|
||||
// Create (frozen) parameters for rules
|
||||
const parsers = Object.freeze({
|
||||
"markdownit": markdownitTokens,
|
||||
"micromark": micromarkTokens
|
||||
"markdownit": Object.freeze({
|
||||
"tokens": markdownitTokens
|
||||
}),
|
||||
"micromark": Object.freeze({
|
||||
"tokens": micromarkTokens
|
||||
})
|
||||
});
|
||||
const paramsBase = {
|
||||
name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue