@effortlessmotion/pdf-to-md
    Preparing search index...

    Function toMarkdown

    • Render an Analysis to markdown. PURE and fail-fast over any well-formed Analysis (including hand-built/spliced ones) — throws PdfToMdError/'ANALYSIS_INPUT' before any output on a malformed one. OCR-origin output is byte-identical to extractOcr's own markdown. Text output comes from the same captured blocks as extractText. Mixed output always includes page markers because adjacent pages have different producers.

      Parameters

      • analysis: Analysis

        the Analysis to render (from analyze(), or hand-built/spliced)

      • opts: { pageMarkers?: boolean } = {}
        • OptionalpageMarkers?: boolean

          text-origin only; OCR and mixed Analysis values always carry markers

      Returns string