Skip to main content

strip_empty_sections

Function strip_empty_sections 

Source
pub fn strip_empty_sections(text: &str) -> String
Expand description

Drop a heading whose section holds nothing, and the bare “## Summary” style heading that only announces the body underneath it.