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

    Module Aggregator/ArticleHtml

    Wrap a rendered article body in the same site chrome that political-intelligence.html uses — site header, language switcher, skip link, theme toggle, breadcrumb, and footer. All chrome is reused from existing modules (constants/config.ts, constants/languages.ts, templates/section-builders.ts) so localisation, a11y, and CSP stay consistent with the rest of the site.

    The output is a complete HTML5 document. No inline <script> is emitted in the body. Mermaid is loaded from the vendored ESM bundle via <script type="module" src="js/vendor/mermaid.esm.min.mjs"> so CSP stays script-src 'self'.

    Functions

    getArticleFilename
    buildArticleToc
    wrapArticleHtml

    Interfaces

    ArticleTocEntry
    WrapArticleOptions