Skip to content

Commit 8763843

Browse files
committed
feat: add support for markdownlint v0.38.0
1 parent 70bdb70 commit 8763843

File tree

8 files changed

+1861
-805
lines changed

8 files changed

+1861
-805
lines changed

.markdownlint-cli2.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import relativeLinksRule from "./src/index.js"
1+
import relativeLinksRule, { markdownIt } from "./src/index.js"
22

33
const config = {
44
config: {
@@ -10,6 +10,9 @@ const config = {
1010
globs: ["**/*.md"],
1111
ignores: ["**/node_modules", "**/test/fixtures/**"],
1212
customRules: [relativeLinksRule],
13+
markdownItFactory: () => {
14+
return markdownIt
15+
},
1316
}
1417

1518
export default config

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ We recommend configuring [markdownlint-cli2](https://github.com/DavidAnson/markd
8383
`.markdownlint-cli2.mjs`
8484

8585
```js
86-
import relativeLinksRule from "markdownlint-rule-relative-links"
86+
import relativeLinksRule, { markdownIt } from "markdownlint-rule-relative-links"
8787

8888
const config = {
8989
config: {
@@ -93,6 +93,9 @@ const config = {
9393
globs: ["**/*.md"],
9494
ignores: ["**/node_modules"],
9595
customRules: [relativeLinksRule],
96+
markdownItFactory: () => {
97+
return markdownIt
98+
},
9699
}
97100

98101
export default config

0 commit comments

Comments
 (0)