Skip to content

Command Line

Ferromark v2 ships a Rust library and Node.js bindings. It does not ship the v1 ferromark command. Use an application script or the retained stdin example.

Render stdin from a repository checkout

printf 'Hello, **world**!\n' | cargo run --quiet --locked -p ferromark --example render_stdin

The example follows Rust rendering defaults, including raw HTML passthrough. For untrusted input, build a small wrapper with sanitize: true using the Rust configuration guide.

For a JavaScript script, start with the Node.js guide. Read v2 migration before replacing an existing CLI workflow.