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

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

Type Definitions

  • Function for formatting code blocks within markdown.