Skip to main content

parse_content

Function parse_content 

Source
pub async fn parse_content(
    content: &str,
    format: DocumentFormat,
) -> Result<ParseResult>
Expand description

Parse a document from content using the appropriate parser.

§Arguments

  • content - The document content
  • format - The document format

§Returns

A ParseResult containing the extracted nodes.