Skip to main content

append_section

Function append_section 

Source
pub fn append_section(
    body: &str,
    heading: &str,
    level: u8,
    content: &str,
) -> SectionEdit
Expand description

Append a NEW section at the end of the body: one separating blank line, the #-run heading at level (2–6), then the newline-terminated content.