2 releases
0.1.1 | Jan 14, 2023 |
---|---|
0.1.0 | Jan 14, 2023 |
#667 in Encoding
25KB
622 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
~19K SLoC