Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    interface RenderArticleInput {
    ย ย ย ย markdown: string;
    ย ย ย ย lang: Language;
    ย ย ย ย canonicalPath: string;
    ย ย ย ย hreflangAlternates?: Partial<Record<Language, string>>;
    ย ย ย ย subfolderRepoRelPath?: string;
    ย ย ย ย artifactsUsed?: readonly string[];
    ย ย ย ย englishBriefMarkdown?: string;
    ย ย ย ย localizedBriefMarkdown?: string;
    ย ย ย ย subfolderSlug?: string;
    }
    Index
    markdown: string

    Aggregated markdown (front-matter + body) produced by aggregateAnalysis.

    lang: Language

    Language code.

    canonicalPath: string

    Canonical path (e.g. news/2026-04-23/propositions-en.html).

    hreflangAlternates?: Partial<Record<Language, string>>

    Hreflang alternates map (optional).

    subfolderRepoRelPath?: string

    Subfolder github tree link used in the analysis references block.

    artifactsUsed?: readonly string[]

    Ordered list of artifacts used (shown in the footer).

    englishBriefMarkdown?: string

    Raw English executive-brief.md markdown adjacent to article.md. When provided, the renderer derives <title> (from the brief H1 via cleanArticleTitle) and <meta description> (from the BLUF via composeRichDescription / readBlufParagraph โ†’ truncateToSentenceBoundary) directly from the brief, bypassing the (now back-compat-only) article.md frontmatter title: / description: lines.

    When omitted (the 278 pre-2026-03-26 legacy news/*-en.html articles whose analysis/daily/<date>/ source directories have been deleted), the renderer gracefully falls back to whatever article.md frontmatter is available โ€” keeps existing legacy SEO intact without throwing.

    The subfolder slug (propositions, committee-reports, โ€ฆ) is sourced from subfolderSlug; defaults to the empty string which simply skips the article-type boilerplate scrub inside cleanArticleTitle.

    localizedBriefMarkdown?: string

    Raw localized executive-brief_<lang>.md markdown when one exists for input.lang. When provided and lang !== 'en', the renderer derives title + description from the localized brief (per the cascade-chain step #2 in Article-Generation.md ยง "Per-language precedence chain"); when the localized brief has a banned / missing H1 / BLUF, fields independently fall through to the englishBriefMarkdown cascade.

    subfolderSlug?: string

    Subfolder slug (propositions, committee-reports, โ€ฆ). Forwarded to cleanArticleTitle so brief H1s that simply repeat the article-type label are scrubbed before truncation. Optional; an empty string disables that scrub.