> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# markdownlint-cli2

> markdownlint-cli2 is a linter for Markdown

[**markdownlint-cli2**](https://github.com/DavidAnson/markdownlint-cli2) is a linter for Markdown.

You can enable the markdownlint-cli2 linter with:

```shell theme={null}
trunk check enable markdownlint-cli2
```

## Auto Enabling

markdownlint-cli2 will be auto-enabled if any of its config files are present: *`.markdownlint-cli2.jsonc`, `.markdownlint-cli2.yaml`, `.markdownlint-cli2.cjs`*.

## Settings

markdownlint-cli2 supports the following config files:

* `.markdownlint-cli2.jsonc`
* `.markdownlint-cli2.yaml`
* `.markdownlint-cli2.cjs`
* `.markdownlint-cli2.mjs`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](../configure-linters#moving-linters) for more info.

## Links

* [markdownlint-cli2 site](https://github.com/DavidAnson/markdownlint-cli2)
* markdownlint-cli2 Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/markdownlint-cli2)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
