EU Parliament Monitor — API Documentation - v0.8.55
    Preparing search index...
    • Extract the strongest lead paragraph from a Markdown body. Pure helper; surfaced for unit testing.

      Parameters

      • markdown: string

        Artifact Markdown (front-matter / banners ignored via heading-aware scanning rather than full cleaning)

      Returns string

      First non-empty paragraph under a preferred heading, or the first non-empty paragraph anywhere in the body, or ''