Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Quote mindmap node-label payloads when they contain characters the Mermaid 11 mindmap parser treats as control tokens โ€” specifically (, ), :, and #. The : is the icon-syntax delimiter (::icon(fa fa-โ€ฆ)); a bare colon in human text (e.g. HD11726: constitutional knowledge question) crashes the parser with Expecting 'NL', got ':' even though no icon was intended.

      The fix wraps the affected line content in the bracketed-shape form ["โ€ฆ"], which the mindmap grammar accepts as an opaque label. Indentation (which carries the mindmap tree depth) is preserved verbatim.

      Skips:

      • the mindmap keyword line,
      • the root((โ€ฆ)) line (intentional double parens),
      • comments (%%โ€ฆ),
      • blank lines,
      • lines already wrapped in [โ€ฆ], (โ€ฆ), ((โ€ฆ)), [(โ€ฆ)], or {โ€ฆ} โ€” these were authored explicitly and need no quoting.

      Applies only to mindmap.

      Parameters

      • body: string

      Returns string