EU Parliament Monitor — API Documentation - v1.0.6
    Preparing search index...

    Module Aggregator/ArticleHtml

    Barrel re-export for the article HTML chrome / shell / enhancement layer. The previous monolithic module was split (Refactor 7/8) into focused sub-modules under ./html/:

    • ./html/shell.tswrapArticleHtml + WrapArticleOptions
    • ./html/toc.tsbuildArticleToc + helpers
    • ./html/hreflang.ts — language switcher + alternate links
    • ./html/headline.ts — title / headline / separator helpers
    • ./html/localize-body.ts — appendix-section localization
    • ./html/tradecraft-cards.ts — Tradecraft References card grid
    • ./html/analysis-index-cards.ts — Analysis Index card grid

    Public API is preserved for downstream importers (production code in src/aggregator/article-generator.ts, src/index.ts, tests in test/unit/article-html.test.js + siblings, and any compiled scripts/aggregator/*.js consumers).

    Functions

    wrapArticleHtml → wrapArticleHtml
    getArticleFilename → getArticleFilename
    buildLanguageSwitcher → buildLanguageSwitcher
    buildArticleToc → buildArticleToc
    getLocalizedTocTitle → getLocalizedTocTitle
    getTocSectionIcon → getTocSectionIcon
    truncateHeadline → truncateHeadline
    getTitleSeparator → getTitleSeparator
    getLocalizedArticleType → getLocalizedArticleType
    getLocalizedArticleTypePlain → getLocalizedArticleTypePlain
    localizeArticleBody → localizeArticleBody
    replaceFirstStringIn → replaceFirstStringIn
    replaceHeadingById → replaceHeadingById
    enhanceTradecraftCards → enhanceTradecraftCards
    renderTradecraftCard → renderTradecraftCard
    getViewMethodologyLabel → getViewMethodologyLabel
    getStemIcon → getStemIcon
    enhanceAnalysisIndexCards → enhanceAnalysisIndexCards

    Interfaces

    WrapArticleOptions → WrapArticleOptions
    ArticleTocEntry → ArticleTocEntry

    Variables

    PUBLISHER_NAME → PUBLISHER_NAME
    SITE_NAME → SITE_NAME
    HEADLINE_LIMIT → HEADLINE_LIMIT
    STEM_ICONS → STEM_ICONS
    DEFAULT_CARD_ICON → DEFAULT_CARD_ICON