Skip to main content

upsert_block

Function upsert_block 

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

Insert or replace a managed block in the content.

If the block already exists, it is replaced. Otherwise, it is appended with a blank separator line.