Crate cmarkfmt

Source
Expand description

§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}");

Structs§

Formatter
A Formatter is needed to format markdown. It is created and customized as needed using the with_* methods.

Type Aliases§

CodeFormatFn
Function for formatting code blocks within markdown.