Skip to content

feat(docx): optionally skip explicitly struck-through text - #4832

Draft
Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/docx-struck-text-filter-20261121
Draft

Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/docx-struck-text-filter-20261121

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an opt-in skip_strikethrough=True parameter for DOCX partitioning. Explicit single and double strikethrough text is removed before DOCX element extraction, covering paragraphs, tables, headers, footers and hyperlinks consistently. Explicit false flags remain visible.

This resolves direct run formatting; strike inherited through a style is outside the scope. Drawings and page-break nodes are retained, and the caller's source stream is unchanged. Defaults preserve existing output.

Validation

Ten regressions fail before the fix. The new tests and existing DOCX suite pass: 235 passed, one long vertical-merge stress case deselected. Whole-repository Ruff 0.15.10 lint and format checks pass. Full repository tests remain pending, so this is a draft.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant