Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Apply all scannability transforms to the rendered article body HTML.

      Inline transforms (confidence โ†’ admiralty โ†’ timeline) are applied first. Progressive disclosure is deliberately excluded here because it wraps <h2> sections in <details> wrappers โ€” if splitBodyAtSecondH2() runs after this transform it may split inside a wrapper, producing malformed HTML. Callers should apply transformProgressiveDisclosure to the "rest" chunk after splitting.

      TOC and methodology footer are returned separately for template placement.

      Parameters

      Returns { transformedBody: string; tocHtml: string; methodologyFooterHtml: string }