EU Parliament Monitor — API Documentation - v0.9.3
    Preparing search index...

    Function enhanceAnalysisIndexCards

    • Replace the Analysis Index <table> with a pi-card-grid of cards, one per included artifact. Each card renders the artifact's curated localised title + description, the section it contributed to, the run-relative path as inline <code>, and a "View on GitHub" CTA.

      Strategy: parse the rendered table's <tbody> rows (each row carries [sectionId, <a href="…">stem</a>, runRelPath]) and re-render the region between the table's opening wrapper and </table> as a card grid. The wrapping <div class="table-scroll"> is dropped because the card grid handles its own responsive layout via flex/grid.

      Parameters

      • bodyHtml: string

        Article body HTML

      • lang: LanguageCode

        Target language code

      Returns string

      Body HTML with the Analysis Index upgraded to a card grid