(row: str, parsed_row: ParsedRow, expected_columns: int)
| 87 | |
| 88 | |
| 89 | def is_body_candidate(row: str, parsed_row: ParsedRow, expected_columns: int) -> bool: |
| 90 | stripped = row.strip() |
| 91 | if not stripped or parsed_row.separator_count == 0: |
| 92 | return False |
| 93 | |
| 94 | if stripped.startswith("|") or stripped.endswith("|"): |
| 95 | return True |
| 96 | |
| 97 | return parsed_row.separator_count >= expected_columns - 1 |
| 98 | |
| 99 | |
| 100 | def validate_markdown_tables() -> int: |
no outgoing calls
no test coverage detected