@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 (shared core); text-origin is NOT byte-identical to extractText's (see AnalysisPage.words, src/types.ts).

      Parameters

      • analysis: Analysis

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

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

          text-origin only; an OCR-origin Analysis always carries markers

      Returns string