Skip to content

Commit bcd078d

Browse files
committed
??
1 parent a918030 commit bcd078d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/validate.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import markdownIt from "markdown-it";
22
import { lint } from "markdownlint/sync";
3+
import configOptions from "@github/markdownlint-github";
34
import yaml from "js-yaml";
45
const markdownItFactory = () => markdownIt({ html: true });
56

@@ -20,7 +21,7 @@ export const validate = (markdown, config) => {
2021
},
2122
handleRuleFailures: true,
2223
markdownItFactory,
23-
customRules: ["@github/markdownlint-github"],
24+
customRules: [configOptions],
2425
}).content?.map((error) => {
2526
return `- ${error.ruleDescription} at line ${error.lineNumber}`;
2627
}) ?? []

0 commit comments

Comments
 (0)