pub fn split_blocks(body: &str) -> Vec<RawBlock>Expand description
Split a message body into block-level pieces.
Only two block constructs exist in the subset, and both are unambiguous at line starts, so this is a line scanner rather than a parser. An unterminated fence runs to the end of the body — the alternative (treating it as literal) means a message someone is mid-way through typing flickers between two renderings.