mdman::format::text

Function split_chunks

Source
fn split_chunks(text: &str) -> Vec<&str>
Expand description

Splits the text on whitespace.

Consecutive whitespace is collapsed to a single ’ ’, and is included as a separate element in the result.