docs: markdownItFactory is not necessary

Ref: https://github.com/theoludwig/markdownlint-rule-relative-links/issues/13
This commit is contained in:
Théo LUDWIG 2025-05-20 21:35:43 +02:00
parent 876384344c
commit 9bb5ffe0ae
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 2 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import relativeLinksRule, { markdownIt } from "./src/index.js"
import relativeLinksRule from "./src/index.js"
const config = {
config: {
@ -10,9 +10,6 @@ const config = {
globs: ["**/*.md"],
ignores: ["**/node_modules", "**/test/fixtures/**"],
customRules: [relativeLinksRule],
markdownItFactory: () => {
return markdownIt
},
}
export default config

View File

@ -83,7 +83,7 @@ We recommend configuring [markdownlint-cli2](https://github.com/DavidAnson/markd
`.markdownlint-cli2.mjs`
```js
import relativeLinksRule, { markdownIt } from "markdownlint-rule-relative-links"
import relativeLinksRule from "markdownlint-rule-relative-links"
const config = {
config: {
@ -93,9 +93,6 @@ const config = {
globs: ["**/*.md"],
ignores: ["**/node_modules"],
customRules: [relativeLinksRule],
markdownItFactory: () => {
return markdownIt
},
}
export default config