mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
feat: add support for markdownlint v0.38.0
This commit is contained in:
@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user