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 19/week @ 2024-07-20 77/week @ 2024-07-27 29/week @ 2024-08-03 63/week @ 2024-08-10 17/week @ 2024-08-17 36/week @ 2024-08-24 6/week @ 2024-08-31 43/week @ 2024-09-07 3/week @ 2024-09-14 53/week @ 2024-09-21 10/week @ 2024-09-28 25/week @ 2024-10-05 6/week @ 2024-10-12 12/week @ 2024-10-19 11/week @ 2024-10-26 41/week @ 2024-11-02

71 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
~41K SLoC