From af0bbe9793e2c728b5b32da16b0ab23fdabb4ee4 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 3 Jun 2026 15:33:00 -0400 Subject: [PATCH] fix(markdown): add imgui.spacing() after each markdown chunk render User reported that nested list items in the Discussion Hub's read_mode entries were overlapping with adjacent text (e.g., '- gte_lw(...)' overlapping with 'These are different things...' below it). This is the imgui_md library's known issue with list item line height. FIX: Add an imgui.spacing() call after each imgui_md.render() to force a small vertical gap between chunks. This prevents adjacent list items from rendering at overlapping Y positions. Tests: 16/16 broad regression pass --- src/markdown_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markdown_helper.py b/src/markdown_helper.py index 75ca5aee..448c2fd2 100644 --- a/src/markdown_helper.py +++ b/src/markdown_helper.py @@ -135,8 +135,8 @@ class MarkdownRenderer: chunk = "".join(md_buf) if chunk.strip(): imgui_md.render(chunk) + imgui.spacing() md_buf.clear() - def flush_code() -> None: nonlocal block_idx if code_buf: