0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2025-03-15 21:26:24 +01:00
markdownlint-cli2-action/test/custom-rule-markdown-it.cjs

14 lines
332 B
JavaScript

// @ts-check
/** @type {import("markdownlint").Rule} */
module.exports = {
"names": [ "custom-rule-markdown-it" ],
"description": "Custom rule using markdown-it",
"tags": [ "test" ],
"parser": "markdownit",
"function": (params, onError) => {
if (params.config.error) {
onError({ "lineNumber": 1 });
}
}
}