"""Tests for the transcript renderer (Task 33). Lightweight markdown for transcript turns: - ``*action*`` → ``action`` - ``**bold**`` → ``bold`` - ``((ooc))`` → ``((ooc))`` - ``> line`` → ``
line`` - paragraph breaks (double newline) → ``
`` - everything HTML-escaped first No headings, no code blocks, no links — out of scope per Requirements §16.3. """ from __future__ import annotations from chat.web.render import render_prose, render_turn_html def test_render_prose_escapes_html(): """Raw HTML in user content must be escaped — no XSS surface.""" out = render_prose("") assert "