Skip to main content

parse_finish

Function parse_finish 

Source
pub fn parse_finish(
    input: &str,
) -> Result<Option<Paragraph<'_>>, SyntaxError<'_>>
Expand description

Finish parsing the streaming input and return the final remaining paragraph, if any.

This is the companion function to parse_streaming. Once all input has been read and parse_streaming returns Incomplete, call this function with any remaining input to parse the final remaining paragraph. If the remaining input is only whitespace and comments, None is returned.