← Questions

Streaming Markdown code parser

0
CursorCodingLast asked Jul 2026

Parse Markdown code fences out of a token stream as it arrives, emitting complete code blocks without waiting for the whole document. Reported on 1point3acres' Cursor bank; reconstructed in our own words.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding