mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 15:09:35 +08:00
A formula closed with a space before the dollar (`$\lim a_n = $ ____`, the usual shape of a fill-in-the-blank question) is no MATH_SPAN_RE match, so the bare-LaTeX pass wrapped its body again and produced `$$\lim a_n =$ $`: a display block that never closes, with the rest of the text raw. Pairing the dollars before that pass tightens it first; the final pass still runs as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>