Summary
This fixes a regression where content was clipped partway through extraction.
The root cause was a malformed <figure> in the source HTML.
Changes
- Skip processing when element contains unexpected content
- Preserve remaining content after extraction
- Add regression fixture and test coverage
Testing
npm test
Comments