Crates.io | cmarkfmt |
lib.rs | cmarkfmt |
version | 0.1.2 |
source | src |
created_at | 2023-01-14 06:33:09.675067 |
updated_at | 2023-06-04 21:07:04.642571 |
description | A library for formatting CommonMark |
homepage | |
repository | https://github.com/ryanfowler/cmarkfmt |
max_upload_size | |
id | 758722 |
size | 34,047 |
A CommonMark formatter library for Rust.
let input = r#"# This is markdown
It *needs* to be formatted."#;
let cmfmt = cmarkfmt::Formatter::default();
let output = cmfmt.format_cmark(input);
println!("{output}");