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 a918030 commit bcd078dCopy full SHA for bcd078d
src/validate.js
@@ -1,5 +1,6 @@
1
import markdownIt from "markdown-it";
2
import { lint } from "markdownlint/sync";
3
+import configOptions from "@github/markdownlint-github";
4
import yaml from "js-yaml";
5
const markdownItFactory = () => markdownIt({ html: true });
6
@@ -20,7 +21,7 @@ export const validate = (markdown, config) => {
20
21
},
22
handleRuleFailures: true,
23
markdownItFactory,
- customRules: ["@github/markdownlint-github"],
24
+ customRules: [configOptions],
25
}).content?.map((error) => {
26
return `- ${error.ruleDescription} at line ${error.lineNumber}`;
27
}) ?? []
0 commit comments