feat: add support for markdownlint v0.38.0

This commit is contained in:
2025-05-11 16:45:14 +02:00
parent 70bdb7013e
commit 876384344c
8 changed files with 1851 additions and 795 deletions

View File

@ -3,7 +3,7 @@ import assert from "node:assert/strict"
import * as markdownlint from "markdownlint/promise"
import relativeLinksRule from "../src/index.js"
import relativeLinksRule, { markdownIt } from "../src/index.js"
/**
*
@ -18,6 +18,9 @@ const validateMarkdownLint = async (fixtureFile) => {
"relative-links": true,
},
customRules: [relativeLinksRule],
markdownItFactory: () => {
return markdownIt
},
})
return lintResults[fixtureFile]
}