3 releases

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

#4 in #cmark

Download history 39/week @ 2024-08-26 4/week @ 2024-09-02 44/week @ 2024-09-09 1/week @ 2024-09-16 54/week @ 2024-09-23 9/week @ 2024-09-30 28/week @ 2024-10-07 3/week @ 2024-10-14 13/week @ 2024-10-21 11/week @ 2024-10-28 41/week @ 2024-11-04 9/week @ 2024-11-11 13/week @ 2024-11-18 21/week @ 2024-11-25 28/week @ 2024-12-02 39/week @ 2024-12-09

101 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