Skip to main content

extract_first_paragraph

Function extract_first_paragraph 

Source
pub fn extract_first_paragraph(body: &str) -> String
Expand description

Extract the first paragraph from document body text.

Skips YAML frontmatter (content between --- markers) and returns the first non-empty line or the first paragraph.