3 releases

0.1.2 Jun 4, 2023
0.1.1 Jan 14, 2023
0.1.0 Jan 14, 2023

#3 in #cmark

Download history 7/week @ 2024-11-13 19/week @ 2024-11-20 15/week @ 2024-11-27 37/week @ 2024-12-04 28/week @ 2024-12-11 54/week @ 2025-01-08 46/week @ 2025-01-22 51/week @ 2025-01-29 38/week @ 2025-02-05 20/week @ 2025-02-12 91/week @ 2025-02-19 27/week @ 2025-02-26

186 downloads per month
Used in metafmt

MIT license

26KB
620 lines

cmarkfmt

A CommonMark formatter library for Rust.

Usage

let input = r#"# This is markdown
It *needs* to be formatted."#;

let cmfmt = cmarkfmt::Formatter::default();
let output = cmfmt.format_cmark(input);
println!("{output}");

lib.rs:

cmarkfmt

A library for formatting CommonMark files.

Usage

let input = r#"# This is markdown
It *needs* to be formatted."#;

let cmfmt = cmarkfmt::Formatter::default();
let output = cmfmt.format_cmark(input);
println!("{output}");

Dependencies

~2.5MB
~42K SLoC