From 9bb5ffe0aef262b13e9211790d472aeaed058e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Tue, 20 May 2025 21:35:43 +0200 Subject: [PATCH] docs: markdownItFactory is not necessary Ref: https://github.com/theoludwig/markdownlint-rule-relative-links/issues/13 --- .markdownlint-cli2.mjs | 5 +---- README.md | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.markdownlint-cli2.mjs b/.markdownlint-cli2.mjs index c021c85..1f8f0ef 100644 --- a/.markdownlint-cli2.mjs +++ b/.markdownlint-cli2.mjs @@ -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 diff --git a/README.md b/README.md index 4e08ce0..ce22323 100644 --- a/README.md +++ b/README.md @@ -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