cleaning cruft part 2

This commit is contained in:
ed
2026-07-05 14:08:03 -04:00
parent 508baa69b6
commit 06898ca5a6
20 changed files with 74 additions and 469 deletions
+2 -6
View File
@@ -7,9 +7,7 @@ from imgui_bundle import imgui, imgui_md
_TABLE_SEPARATOR = re.compile(r"^\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)+\|?\s*$")
def render_table(block: "TableBlock") -> None:
"""Render a GFM table block via imgui.begin_table.
[C: src/markdown_helper.py:MarkdownRenderer.render]
"""
"""Render a GFM table block via imgui.begin_table."""
n_cols = len(block.headers)
if n_cols == 0: return
flags = imgui.TableFlags_.borders | imgui.TableFlags_.row_bg | imgui.TableFlags_.resizable
@@ -26,9 +24,7 @@ def render_table(block: "TableBlock") -> None:
@dataclass(frozen=True)
class TableBlock:
"""Frozen GFM table block.
[C: src/markdown_helper.py:MarkdownRenderer.render]
"""
"""Frozen GFM table block.s"""
headers: list[str]
rows: list[list[str]]
span: tuple[int, int]