"""Unit tests for the notification card markup helpers (PR 2026-05-02). Covers: * ``_apply_inline_markup`` — channel-aware [r] / [b] expansion * ``_resolve_cta_line`` — Feishu drops, email keeps * ``_collapse_blank_lines``— gap removal after empty cta_line * ``_escape_card_markdown`` interaction — user input with `<>` is escaped BEFORE markup expansion so trusted ```` tags from ``[r]`` survive while raw ``, your overage is " "[r]$1,234[/r] this month." ) escaped = _escape_card_markdown(body) # `