Return True if a Markdown table row looks like a TOC entry (dot-filled).
(line: str)
| 26 | # ── helpers ────────────────────────────────────────────────────────────────── |
| 27 | |
| 28 | def is_toc_table_line(line: str) -> bool: |
| 29 | """Return True if a Markdown table row looks like a TOC entry (dot-filled).""" |
| 30 | return bool(re.search(r'\.{8,}', line)) |
| 31 | |
| 32 | |
| 33 | def split_into_table_blocks(lines: list[str]) -> list[tuple[str, list[str]]]: |