flowmark 0.3.1

A Markdown auto-formatter for clean diffs and semantic line breaks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Line wrapping, sentence splitting, and text processing.

pub mod atomic_patterns;
pub mod block_heuristics;
pub mod line_wrappers;
pub mod sentence;
pub mod tag_handling;
pub mod text_filling;
pub mod text_wrapping;

/// A function that wraps text with indentation.
///
/// Takes text, an initial indent for the first line, and a subsequent indent
/// for continuation lines. Returns the wrapped text.
pub(crate) type LineWrapper = Box<dyn Fn(&str, &str, &str) -> String + Send + Sync>;