Skip to content

v0.1.0

Choose a tag to compare

@Vusys Vusys released this 09 Aug 16:08
· 12 commits to master since this release

First release of cm-tools — CommonMark tools shipped as a single binary.

Added

  • Fixed-width reflow — wrap reflows a document's prose to a column width; unwrap collapses it back to one line per block.
  • Dialect validation — lint checks a document against a target dialect (strict CommonMark, GitHub Flavored Markdown, JIRA Cloud) and exits non-zero on unsupported constructs; detect reports which dialects a document is compatible with.
  • Symfony Console-based CLI, shipped as a standalone .phar built with Box.

Install

Download cm-tools below and put it on your PATH:

chmod +x cm-tools
mv cm-tools /usr/local/bin/

Or via Composer:

composer global require vusys/cm-tools

Requires PHP 8.4+ with ext-mbstring. The phar is GZ-compressed, so ext-zlib is required to execute it.