3 releases

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

#2908 in Parser implementations

Download history 30/week @ 2024-03-11 9/week @ 2024-03-18 48/week @ 2024-03-25 31/week @ 2024-04-01 73/week @ 2024-04-15 37/week @ 2024-04-22 54/week @ 2024-04-29 14/week @ 2024-05-06 23/week @ 2024-05-13 3/week @ 2024-05-27 49/week @ 2024-06-03 27/week @ 2024-06-10 4/week @ 2024-06-17 13/week @ 2024-06-24

93 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

~1.5MB
~24K SLoC