(body: str, path: Path)
| 523 | return parsed if isinstance(parsed, dict) else {}, body |
| 524 | |
| 525 | |
| 526 | def _report_title(body: str, path: Path) -> str: |
| 527 | for line in body.splitlines(): |
| 528 | stripped = line.strip() |
| 529 | if stripped.startswith("#"): |
| 530 | return stripped.lstrip("#").strip() or path.stem |
| 531 | return path.stem |
| 532 | |
| 533 |