Skip to main content

split_blocks

Function split_blocks 

Source
pub fn split_blocks(text: &str) -> Vec<String>
Expand description

Split markdown text on ---\n separators while respecting escaped separators (\---\n produced by sanitize). After splitting, the escaped backslash is left in place; callers should apply desanitize on individual field values.