[go: up one dir, main page]

collect_text

Function collect_text 

Source
pub fn collect_text<'a>(node: &'a AstNode<'a>) -> String
Expand description

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