Skip to main content

inlines_to_string

Function inlines_to_string 

Source
pub fn inlines_to_string(inlines: &[InlineNode<'_>]) -> String
Expand description

Extract plain text from inlines as a String, recursively handling inline formatting nodes.

Thin wrapper for callers that don’t already have a writer. Allocates exactly one String for the whole subtree.