pub fn clear_section_content_with_undo(
doc: &mut Document,
section_id: &BlockId,
) -> Result<ClearResult>Expand description
Clear all children of a section with undo support.
This is like clear_section_content but preserves the deleted content
for potential restoration using restore_deleted_content.
§Arguments
doc- The document to modifysection_id- The block ID of the section to clear
§Returns
Ok(ClearResult)- Contains removed IDs and preserved contentErr(Error)- If the section doesn’t exist