mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update all references to "params.tokens" to "params.parsers.markdownit.tokens" for clarity.
This commit is contained in:
parent
5302ee45de
commit
4b27bac79b
15 changed files with 45 additions and 37 deletions
|
|
@ -11,7 +11,9 @@ module.exports = {
|
|||
"function": function MD048(params, onError) {
|
||||
const style = String(params.config.style || "consistent");
|
||||
let expectedStyle = style;
|
||||
const fenceTokens = params.tokens.filter((token) => token.type === "fence");
|
||||
const fenceTokens = params.parsers.markdownit.tokens.filter(
|
||||
(token) => token.type === "fence"
|
||||
);
|
||||
for (const fenceToken of fenceTokens) {
|
||||
const { lineNumber, markup } = fenceToken;
|
||||
if (expectedStyle === "consistent") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue