A command-line parser that converts CommonMark Markdown from standard input to HTML on standard output.
CommonMark is a command-line parser for users who need Markdown converted to HTML. It implements the supplied CommonMark 0.31.2 specification and reads UTF-8 Markdown from standard input, writing HTML to standard output through the root executable commonmark.
Parse fenced code as a literal block, including its optional info string, for subsequent HTML rendering.
Identify raw HTML blocks during block parsing and preserve their input without inline interpretation.
Identify indented code chunks during block parsing and retain their literal content for HTML rendering.
Extract definitions from closing paragraphs and make the resulting map available after block parsing, before inline parsing begins.
Recognize a setext underline following eligible paragraph content and retain the heading’s raw text for the later inline phase.
Before first run:
git remote -v; add origin if the startup guard requires it.git status --short and commit or intentionally stash local changes before deployment-oriented runs.Install dependencies:
uv sync
python -m pytest
python -m pytest before making release or deployment changes.