mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2025-03-15 21:26:24 +01:00
14 lines
332 B
JavaScript
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 });
|
|
}
|
|
}
|
|
}
|