3 releases

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

#1871 in Parser implementations

Download history 20/week @ 2023-10-28 34/week @ 2023-11-04 41/week @ 2023-11-11 46/week @ 2023-11-18 40/week @ 2023-11-25 44/week @ 2023-12-02 5/week @ 2023-12-09 7/week @ 2023-12-16 34/week @ 2023-12-23 29/week @ 2023-12-30 124/week @ 2024-01-06 35/week @ 2024-01-13 3/week @ 2024-01-20 59/week @ 2024-01-27 47/week @ 2024-02-03 83/week @ 2024-02-10

193 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