Registry /
devops / markdownlint-cli2-formatter-pretty
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
markdownlint-cli2-formatter-pretty
✓ Configure in .markdownlint-cli2.jsonc as an outputFormatter string
✗ const formatter = require('markdownlint-cli2-formatter-pretty')
This package is not imported directly; it is referenced by name in markdownlint-cli2 configuration.
default
✓ No direct import. Use via markdownlint-cli2 configuration file.
✗ import pretty from 'markdownlint-cli2-formatter-pretty'
The formatter is designed to be used as a string reference in configuration, not as a module import.
appendLink
✓ { "outputFormatters": [["markdownlint-cli2-formatter-pretty", { "appendLink": true }]] }
✗ No configuration object: { "outputFormatters": ["markdownlint-cli2-formatter-pretty"] } (missing options)
When appendLink is true, links are shown as informational text after the rule message instead of being clickable inline.
Shows installation, configuration with default and appendLink options, and typical CLI usage.
// Install the formatter
npm install markdownlint-cli2-formatter-pretty --save-dev
// Create .markdownlint-cli2.jsonc in project root:
{
"outputFormatters": [
[ "markdownlint-cli2-formatter-pretty" ]
]
}
// Run markdownlint-cli2 (assuming it's installed globally)
markdownlint-cli2 '**/*.md'
// For terminals without clickable link support, use appendLink mode:
{
"outputFormatters": [
[ "markdownlint-cli2-formatter-pretty", { "appendLink": true } ]
]
}
Debug
Known issues
gotchaRequires Node.js version 20.12.0, 21.7.0, 22.13.0, or 23.5.0 or later — older versions will fail to run.fixUpgrade Node.js to one of the specified versions.
affects: <20.12.0 || <21.7.0 || <22.13.0 || <23.5.0
gotchaThe formatter must be listed as a string in the outputFormatters array, not as a path or imported module.fixUse correct configuration syntax: ["markdownlint-cli2-formatter-pretty"]
affects: >=0.0.1
gotchaClickable links may not work in all terminals; use appendLink option for wider compatibility.fixSet appendLink: true in the options object if links are not clickable.
affects: >=0.0.1
deprecatedThe package may be superseded by newer formatters in the markdownlint-cli2 ecosystem. Check for alternatives.fixMonitor the markdownlint-cli2 repository for updates or newer formatter packages.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'markdownlint-cli2-formatter-pretty'
The formatter is not installed or not listed correctly in node_modules.
fixRun `npm install markdownlint-cli2-formatter-pretty --save-dev` again and ensure package.json lists it as a devDependency.
TypeError: outputFormatters[0] is not iterable
outputFormatters entry is not in array format for options.
fixUse correct syntax: ["markdownlint-cli2-formatter-pretty"] or [["markdownlint-cli2-formatter-pretty", {}]] ValidationError: 'markdownlint-cli2' is not installed
Peer dependency markdownlint-cli2 is missing.
fixInstall markdownlint-cli2: `npm install markdownlint-cli2 --save-dev`
Audit
Dependencies
markdownlint-cli2requiredpeer dependency required to use the formatter
terminal-linkrequiredruntime dependency for clickable links