Files
DeepTutor/deeptutor/agents
WeDone 6ca722cbde fix(agents): normalize single newlines to markdown paragraphs in quiz content
LLMs often emit single \\n characters between logical paragraphs in
question / answer / explanation fields. In markdown this renders as a
soft-break, causing the front-end to collapse everything into one dense
block.

Add _normalize_markdown_paragraphs() to Generator so that isolated
single newlines are turned into \\n\\n paragraph breaks before the
payload is returned. Structural markers (lists, code fences, tables,
headings) are preserved to avoid breaking intentional formatting.

Fixes quiz questions appearing without paragraph spacing in the web UI.
2026-05-04 16:52:27 +08:00
..
2026-04-23 19:29:16 +08:00
2026-05-01 01:39:08 +08:00
2026-05-01 01:39:08 +08:00
2026-04-25 22:08:44 +08:00
2026-05-01 01:39:08 +08:00