pub fn flatten(segments: Vec<Segment>) -> FlattenedExpand description
Join the segments when every one is finished markup, so the common no-callback path stays a single string and the splicing layer can be skipped; hand the segments back untouched when callback nodes are present.