[−][src]Function indented_blocks::parse_nested_blocks_from_lines
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>,
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)