Run markdown-cli2 in the current project.
- name: Run markdown linter
uses: resuelve/markdown-lint-action@v1
It will use any of the supported config files that exist in the directory.
For example this config file .markdownlint-cli2.jsonc
tell markdownlint-cli2
to ignore src/deps
files and also ignore MD013
rule.
{
// Rules are defined in https://github.com/DavidAnson/markdownlint/#rules--aliases
"config": {
"MD013": false
},
"ignores": [
"src/deps/*/**"
]
}
Enjoy 🎉