Skip to main content

find_block

Function find_block 

Source
pub fn find_block<'a>(
    content: &'a str,
    sentinel: &Sentinel<'_>,
) -> Option<&'a str>
Expand description

Returns the substring from the start marker through the end marker (inclusive), or None if either marker is missing. Does not include any trailing newline after the end marker.