Repository navigation
Extractor: stop dropping content, fix tables, add tests + CI - #1
Merged
Merged
Conversation
… cells; tests + CI - walk w:sdt content controls (text was dropped) - table cells: escape |, flatten line breaks and nested tables, align gridSpan - footnotes/endnotes and deduplicated header/footer included (--no-notes to skip) - heading detection via Title and outlineLvl - --section: compute once (was O(n^2)), warn when not found - friendly error + exit 1 for non-docx input, size guard on XML - 22 unit tests and a CI workflow Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B2TuhyaoLj3duQipFJKR3i
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes content the extractor silently dropped or corrupted, and adds tests.
w:sdt) were skipped entirely, so their text was lost.|and line breaks broke rows; nested table text was lost; merged cells (gridSpan) misaligned columns.--no-notesskips them.TitleandoutlineLvl.--section: no longer O(n^2); warns when the section is not found (still falls back to the full document).Behaviour change
Documents with footnotes or header/footer now get extra sections at the end. Use
--no-notesfor the old output.Not covered
Tests use small synthetic documents, not real Word files. vMerge, text boxes and comments are not handled specially.
Generated by Claude Code