mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why A fence marker inside a blockquote can prematurely end an unquoted code block in the streaming scanner, exposing code to prose preview and table detection. Fence state can also linger when a blockquote ends exactly where the next streamed chunk begins. ## What changed Share fence parsing between Markdown rendering and the streaming scanner so both use the same indentation and blockquote rules. Reset the table scanner when it reaches the renderer's completed-block boundary, including when both offsets are equal. ## Testing Regression tests cover table-like text inside fenced code, prose and table handling after adjacent quoted and unquoted fences, and table detection after indented fence-like text. GitOrigin-RevId: 071c7745a2e925ed44ab6d6f47bf53c3d4be6143