parse_nested_blocks_from_lines

Function parse_nested_blocks_from_lines 

Source
pub fn parse_nested_blocks_from_lines<'a, LI>(
    lines: LI,
    empty_lines_mode: EmptyLinesMode,
) -> Vec<Block<Indented<&'a str>>>
where LI: Iterator<Item = &'a str>,
Expand description

This function does the same as parse_nested_blocks, but expects an Iterator over lines as an argument, which allows pre-filtering of the passed lines without additional allocations (e.g. to filter comments and such)

It returns all parsed blocks, with the lines split into indention and main text. (see also: the [Indention] type)