Command-line interface for linting Obsidian Flavored Markdown (OFM) using markdownlint-obsidian rules. Version 1.0.4 wraps the markdownlint-obsidian library with a commander-based CLI. Released under MIT license, with recent fixes disabling the MD028 rule by default to avoid false positives on multi-paragraph callouts. Supports --fix, --fix-check, multiple output formatters (SARIF, JUnit), and custom config. Requires Node >=20 or Bun >=1.1.30. Key differentiator: provides CLI access to OFM-specific rules not available in generic markdownlint.
npm install markdownlint-obsidian-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint all markdown files in 'src' directory with auto-fix enabled.
If you need MD028, enable it in your config file explicitly.
Use --output-formatter to capture all issues, or rely on exit code only for errors.
Use v1.0.4 or later.
Upgrade Node.js to 20+ or use Bun 1.1.30+.
Pass --config path/to/.markdownlint.json explicitly.
Ensure you run 'npm install -g markdownlint-obsidian-cli' or use 'npx markdownlint-obsidian-cli'.
Add 'MD028': false to your config or remove it; the rule is not needed for OFM.
Upgrade Node.js to version 20 or later, or switch to Bun >=1.1.30.
Use quotes around the glob pattern, e.g., "**/*.md".