markdownlint-cli2-formatter-pretty
v0.0.9
Published
An output formatter for markdownlint-cli2 that looks like markdownlint-cli2-formatter-default with color and clickable links
Downloads
131,496
Maintainers
Keywords
Readme
markdownlint-cli2-formatter-pretty
An output formatter for
markdownlint-cli2that looks likemarkdownlint-cli2-formatter-defaultwith color and clickable links
Install
npm install markdownlint-cli2-formatter-pretty --save-devUse
To enable this formatter, use the following .markdownlint-cli2.jsonc:
{
"outputFormatters": [
[ "markdownlint-cli2-formatter-pretty" ]
]
}Many terminals support color (implemented by chalk), but support for clickable links (implemented by terminal-link) is not as widespread. Where possible, rule names in output are rendered as clickable links with information about the rule.
To append informational links to the output instead (which may be clickable):
{
"outputFormatters": [
[ "markdownlint-cli2-formatter-pretty", { "appendLink": true } ]
]
}Example
As an image:

And as text (which may have its formatting removed by GitHub, etc.):
