Configuration File Reference¶
markdown-checker reads defaults from a [tool.markdown-checker] table in
pyproject.toml. Keys are hyphenated and mirror the long CLI option
names. See How to Configure via pyproject.toml for a task-oriented walkthrough.
Precedence¶
Command-line flags.
[tool.markdown-checker]in the resolvedpyproject.toml(or the file passed via-c/--config).Built-in defaults (see Command-Line Options).
--isolated skips step 2 entirely.
Discovery¶
Without -c/--config, markdown-checker walks up from the current
directory and uses the first pyproject.toml it finds, whether or not it
contains a [tool.markdown-checker] table.
Unknown keys under [tool.markdown-checker] are a hard error - this
catches typos immediately rather than silently ignoring them.
Keys¶
Key |
CLI flag |
Type |
|---|---|---|
|
|
string |
|
|
string (path) |
|
|
array of strings |
|
|
array of strings |
|
|
array of strings |
|
|
array of strings |
|
|
array of strings |
|
|
string |
|
|
integer |
|
|
integer |
|
|
boolean |
|
|
integer |
|
|
integer |
|
|
float |
|
|
string |
|
|
string |
Example¶
[tool.markdown-checker]
func = "check_broken_urls"
dir = "."
extensions = [".md", ".ipynb"]
skip-files = ["CODE_OF_CONDUCT.md", "SECURITY.md"]
skip-domains = []
tracking-domains = ["github.com", "microsoft.com", "visualstudio.com", "aka.ms", "azure.com"]
guide-url = "https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md"
timeout = 20
retries = 3
retry-on-429 = true
max-workers = 10
report-format = "markdown"