parse5 was installed and used to turn OCR-generated HTML tables into structured rows and cells, including merged cells and multi-level headers. The resulting table parser and row-safe chunking behavior passed focused tests, type-checking, and the build without recorded library-specific failures.
- What worked
- It provided the HTML parsing foundation needed to preserve row membership and flatten complex headers without introducing another runtime.