Skip to main content

preprocess_google_docs_export_html

Function preprocess_google_docs_export_html 

Source
pub fn preprocess_google_docs_export_html(
    html: &str,
) -> GDocsExportPreprocessResult
Expand description

Pre-process Google Docs export HTML so the generic html2md pipeline preserves inline formatting, heading numbering, and link targets.

Google Drive serves bold/italic/strikethrough as inline style spans and wraps every link through a google.com/url?q= redirect, both of which the generic converter would otherwise discard. This function rewrites those constructs into semantic HTML before conversion.