providerplaneai
    Preparing search index...

    Function normalizeOCRMarkdownTableOutput

    • Removes trailing empty markdown table rows from OCR markdown output.

      OCR providers often emit dangling | | rows after otherwise valid tables. Trimming them keeps downstream readable-text extraction and markdown rendering cleaner without altering non-empty content.

      Parameters

      • markdown: string | null | undefined

        OCR markdown to normalize.

      Returns string

      Markdown with empty trailing table rows removed.