3 releases

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

#2852 in Parser implementations

Download history 7/week @ 2024-01-14 28/week @ 2024-01-28 20/week @ 2024-02-04 46/week @ 2024-02-11 35/week @ 2024-02-18 9/week @ 2024-02-25 10/week @ 2024-03-03 24/week @ 2024-03-10 16/week @ 2024-03-17 44/week @ 2024-03-24 34/week @ 2024-03-31 1/week @ 2024-04-07 71/week @ 2024-04-14 38/week @ 2024-04-21 55/week @ 2024-04-28

173 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

~1MB
~23K SLoC