EU Parliament Monitor โ€” API Documentation - v0.8.42
    Preparing search index...
    • Extract a title and short description from the top of a Markdown file. Uses the first H1 (# โ€ฆ) line as title (falling back to a humanized stem).

      The description field is intentionally left empty: for the political-intelligence index we use a curated per-file, per-language description table (getCuratedDescription) instead of scraping the first paragraph of each Markdown file. Scraping proved fragile โ€” it leaked document-metadata headers (๐Ÿ“‹ Document Owner: CEO | ๐Ÿ“„ Versionโ€ฆ) and template separators (---) into the rendered cards. Leaving it empty here forces the renderer to go through the curated table.

      Parameters

      • fullPath: string

        Absolute path to a Markdown file

      • stem: string

        Filename stem used as title fallback

      Returns { title: string; description: string }

      { title, description } โ€” description is always ''