pub fn convert_html_to_markdown(
html: &str,
base_url: Option<&str>,
) -> Result<String>Expand description
Convert HTML content to Markdown
This function cleans the HTML (removing scripts, styles, etc.) and converts it to Markdown format.
§Arguments
html- The HTML content to convertbase_url- Optional base URL for converting relative URLs to absolute
§Returns
The Markdown content as a string
§Errors
Returns an error if conversion fails