@@ -10,25 +10,37 @@ A GitHub Action that performs style checking and linting for Markdown/CommonMark
1010Basic usage with all options enabled:
1111
1212``` yaml
13-
14- - name : markdownlint-cli
15- uses : nosborn/github-action-markdown-cli@v3.0.1
16- with :
17- files : .
18- config_file : .markdownlint.yaml
19- ignore_files : examples/ignore/*
20- ignore_path : examples/.markdownlintignore
21- rules : examples/rules/custom.js
22-
13+ - name : markdownlint-cli
14+ uses : nosborn/github-action-markdown-cli@v4.0.0
15+ with :
16+ files : .
17+ config-file : .markdownlint.yaml
18+ disable : MD013 MD041
19+ dot : true
20+ enable : MD013 MD041
21+ ignore : examples/ignore/*
22+ ignore-path : examples/.markdownlintignore
23+ rules : examples/rules/custom.js
2324` ` `
2425
2526## Inputs
2627
27- * ` files ` - what to process (files, directories, globs)
28- * ` config_file ` (optional) - configuration file (JSON or YAML)
29- * ` ignore_files ` (optional) - files to ignore/exclude (file, directory, glob)
30- * ` ignore_path ` (optional) - path to file with ignore pattern(s)
31- * ` rules ` (optional) - custom rule files (file, directory, glob, package)
28+ - ` files` - what to process (files, directories, globs)
29+ - ` config` (optional) - configuration file (JSON or YAML)
30+ - ` disable` (optional) - disable certain rules, for example `MD013 MD041`
31+ - ` dot` (optional) - if `true`, include files/folders with a dot (for example `.github`)
32+ - ` enable` (optional) - enable certain rules, for example `MD013 MD041`
33+ - ` ignore` (optional) - files to ignore/exclude (file, directory, glob)
34+ - ` ignore-path` (optional) - path to file with ignore patterns
35+ - ` rules` (optional) - custom rule files (file, directory, glob, package)
36+
37+ # ## Deprecated inputs
38+
39+ These inputs are still available but will be removed in a future major version.
40+
41+ - ` config_file` (optional) - configuration file (JSON or YAML) - superseded by `config`
42+ - ` ignore_files` (optional) - files to ignore/exclude (file, directory, glob) - superseded by `ignore`
43+ - ` ignore_path` (optional) - path to file with ignore patterns - superseded by `ignore-path`
3244
3345# # License
3446
0 commit comments