| Crates.io | mdformat |
| lib.rs | mdformat |
| version | 0.1.6 |
| created_at | 2025-05-18 14:33:55.161055+00 |
| updated_at | 2026-01-04 05:53:51.170481+00 |
| description | A formatter for markdown source code. |
| homepage | |
| repository | https://github.com/huleiak47/mdformat |
| max_upload_size | |
| id | 1678674 |
| size | 3,240,714 |
A command-line tool for formatting markdown text with consistent empty lines and spacing.
cd mdformat
cargo build --release
target/release/mdformatBasic formatting:
mdformat input.md -o formatted.md
Pipe from stdin/stdout:
cat input.md | mdformat > formatted.md
Formats Markdown code with consistent empty lines and spacing
Usage: mdformat [OPTIONS] [INPUT]
Arguments:
[INPUT] Input file (default: stdin)
Options:
-o, --output <OUTPUT> Output file (default: stdout)
-i, --indent <INDENT> Number of spaces for indentation [default: 4]
-h, --help Print help
-V, --version Print version
MIT Licensed