[go: up one dir, main page]

collect_text

Function collect_text 

Source
pub fn collect_text<'a>(node: &'a AstNode<'a>, output: &mut Vec<u8>)
Expand description

Recurses through a node and all of its children in depth-first (document) order, appending the literal contents of text, code and math blocks to an output buffer. Line breaks and soft breaks are represented as a single whitespace character.