Skip to main content

convert_html_to_markdown

Function convert_html_to_markdown 

Source
pub fn convert_html_to_markdown(
    html: &str,
    base_url: Option<&str>,
) -> Result<String>
Expand description

Convert HTML content to Markdown

§Arguments

  • html - The HTML content to convert
  • base_url - Optional base URL for converting relative URLs to absolute

§Returns

The Markdown content as a string

§Errors

Returns an error if conversion fails