Skip to main content

Crate flowmark

Crate flowmark 

Source
Expand description

Flowmark: A Markdown auto-formatter for clean diffs and semantic line breaks.

Ported from Python: flowmark

Re-exports§

pub use config::DEFAULT_WRAP_WIDTH;
pub use config::FormatOptions;
pub use config::ListSpacing;
pub use error::Error;
pub use error::Result;
pub use formatter::filling::fill_markdown;
pub use wrapping::line_wrappers::line_wrap_by_sentence;
pub use wrapping::line_wrappers::line_wrap_to_width;
pub use wrapping::sentence::split_sentences_regex;
pub use wrapping::text_filling::Wrap;
pub use wrapping::text_filling::fill_text;
pub use wrapping::text_wrapping::html_md_word_split;
pub use wrapping::text_wrapping::simple_word_split;
pub use wrapping::text_wrapping::wrap_paragraph;
pub use wrapping::text_wrapping::wrap_paragraph_lines;

Modules§

config
Configuration types and TOML-based config file loading.
error
Error types for flowmark.
file_resolver
File discovery and filtering.
formatter
Markdown formatting and normalization.
parser
Parsing utilities for frontmatter and Markdown options.
skills
Skill system for Claude Code integration.
transform
Document tree transforms.
typography
Typography transforms: smart quotes and ellipsis conversion.
wrapping
Line wrapping, sentence splitting, and text processing.

Functions§

reformat_file
Reformat a Markdown or plain text file.
reformat_text
Reformat a Markdown or plain text string.