intellibrix v1.0.0
    Preparing search index...

    Function htmlToMarkdown

    • Converts an HTML page to Markdown, keeping headings, links, lists, code blocks and tables, and dropping scripts, navigation, ads, cookie banners and other page furniture. Only the main content (<article> or <main>) is kept unless wholePage is set.

      Parameters

      • html: string
      • options: MarkdownOptions = {}

      Returns string