3 releases

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

#2739 in Parser implementations

Download history 9/week @ 2023-12-06 2/week @ 2023-12-20 3/week @ 2023-12-27 40/week @ 2024-01-03 64/week @ 2024-01-10 1/week @ 2024-01-17 8/week @ 2024-01-24 26/week @ 2024-01-31 22/week @ 2024-02-07 61/week @ 2024-02-14 17/week @ 2024-02-21 7/week @ 2024-02-28 18/week @ 2024-03-06 24/week @ 2024-03-13 32/week @ 2024-03-20

84 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