Function dprint_plugin_markdown::format_text[][src]

pub fn format_text(
    file_text: &str,
    config: &Configuration,
    format_code_block_text: impl FnMut(&str, &str, u32) -> Result<String, ErrBox>
) -> Result<String, ErrBox>
Expand description

Formats a file.

Returns the file text or an error when it failed to parse.