Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Repair timeline section <title> : <event> : <details> lines โ€” Mermaid 11's timeline parser expects section <title> on its own line (events follow on the next, indented line as <time> : <event>). When the author squashed everything onto the section line with : separators the parser crashes with Cannot read properties of undefined (reading 'events').

      The safest semantics-preserving fix is to drop the section keyword โ€” the remaining <title> : <event> : <details> becomes a valid timeline event line (the visual grouping is lost but every datum survives).

      Parameters

      • body: string

      Returns string