Briyah SDK - v2.0.6
    Preparing search index...

    Function splitMarkdownIntoPages

    • Splits a converted document back into its pages on the <!-- Page N --> markers.

      The inverse of buildMarkdown, and the reason the markers are machine readable at all: re-running the pages that failed means finding them, converting them, and splicing them back.

      Parameters

      • markdown: string

        A document this module produced, or any Markdown

      Returns PdfPageMarkdown[]

      One entry per page; the whole document as page 1 when it carries no markers