Skip to content

Commit d82fed8

Browse files
committed
ok then
1 parent bcd078d commit d82fed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validate.js

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

@@ -21,7 +21,7 @@ export const validate = (markdown, config) => {
2121
},
2222
handleRuleFailures: true,
2323
markdownItFactory,
24-
customRules: [configOptions],
24+
customRules: githubMarkdownLint,
2525
}).content?.map((error) => {
2626
return `- ${error.ruleDescription} at line ${error.lineNumber}`;
2727
}) ?? []

0 commit comments

Comments
 (0)