Parse a Markdown table row into a list of cell strings.
(line: str)
| 299 | # ── repeated-column table cleanup ──────────────────────────────────────────── |
| 300 | |
| 301 | def parse_table_row(line: str) -> list[str]: |
| 302 | """Parse a Markdown table row into a list of cell strings.""" |
| 303 | # Strip leading/trailing | and split |
| 304 | stripped = line.strip() |
| 305 | if stripped.startswith('|'): |
| 306 | stripped = stripped[1:] |
| 307 | if stripped.endswith('|'): |
| 308 | stripped = stripped[:-1] |
| 309 | return [c.strip() for c in stripped.split('|')] |
| 310 | |
| 311 | |
| 312 | def is_separator_row(line: str) -> bool: |
no outgoing calls
no test coverage detected