Skip to main content

remove_block

Function remove_block 

Source
pub fn remove_block(
    content: &str,
    markers: &BlockMarkers,
) -> (String, BlockRemoveResult)
Expand description

Remove a managed block from the content.

Returns the content with the block removed and excessive blank lines cleaned up. Returns unchanged content if the block is not found.