Skip to main content

replace_marked_block

Function replace_marked_block 

Source
pub fn replace_marked_block(
    content: &str,
    start: &str,
    end: &str,
    replacement: &str,
) -> String
Expand description

Replace the region between start and end markers with replacement (trim-aware newlines). If markers are missing or invalid, returns content unchanged.