Skip to main content

compact_preview

Function compact_preview 

Source
pub fn compact_preview(content: &str, max_chars: usize) -> (String, bool)
Expand description

Generate a compact preview of content

Returns the first line or first N characters, whichever is shorter.