Skip to content

feat(pptx): preserve explicit bold and italic paragraph metadata - #4819

Draft
Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/pptx-emphasis-20261121
Draft

Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/pptx-emphasis-20261121

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

PowerPoint paragraph text is extracted without its bold or italic formatting, so consumers cannot recover emphasis even when the file records it explicitly. Preserve that information in emphasized_text_contents and emphasized_text_tags for title and body paragraphs.

Run formatting takes precedence over the paragraph font default, including an explicit False that disables inherited emphasis. Whitespace-only runs are skipped, and a run with both styles produces the existing b/i metadata convention used by DOCX. Plain paragraphs keep the fields absent. Slide-master/theme font resolution is outside this change.

Validation

  • Two real-presentation regressions fail on the base revision and pass after the change; the unformatted control also passes.
  • 121 PPTX tests pass using a dedicated writable temporary directory.
  • Full-repository Ruff 0.15.10 lint and format checks pass.

This PR is a draft pending the full repository test/check gate.

Release note

PPTX title and body paragraphs now preserve explicitly specified bold/italic emphasis metadata.

Checklist

  • PR title uses a conventional commit prefix.
  • Full repository test/check gate passes.

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