Skip to main content

headline

Function headline 

Source
pub fn headline(line: &str) -> String
Expand description

One line’s headline. An entry’s is its first bold lead; a line with no bold text keeps its words, less one pair of wrapping parentheses. Backticks are dropped, runs of whitespace become one space, a trailing period goes, and a headline over 72 characters is cut back to its last whole word and ends in an ellipsis.