We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd078d commit d82fed8Copy full SHA for d82fed8
src/validate.js
@@ -1,6 +1,6 @@
1
import markdownIt from "markdown-it";
2
import { lint } from "markdownlint/sync";
3
-import configOptions from "@github/markdownlint-github";
+import githubMarkdownLint from "@github/markdownlint-github";
4
import yaml from "js-yaml";
5
const markdownItFactory = () => markdownIt({ html: true });
6
@@ -21,7 +21,7 @@ export const validate = (markdown, config) => {
21
},
22
handleRuleFailures: true,
23
markdownItFactory,
24
- customRules: [configOptions],
+ customRules: githubMarkdownLint,
25
}).content?.map((error) => {
26
return `- ${error.ruleDescription} at line ${error.lineNumber}`;
27
}) ?? []
0 commit comments