Skip to content

fix(rss): preserve Atom XHTML content - #2297

Open
will wang (weivwang) wants to merge 1 commit into
microsoft:mainfrom
weivwang:fix/atom-xhtml-content
Open

fix(rss): preserve Atom XHTML content#2297
will wang (weivwang) wants to merge 1 commit into
microsoft:mainfrom
weivwang:fix/atom-xhtml-content

Conversation

@weivwang

Copy link
Copy Markdown

What

Preserve structured Atom summary and content elements whose type is xhtml. Their child XHTML is now serialized and passed through the existing HTML-to-Markdown conversion path, while plain text and escaped HTML entries keep their current behavior.

Why

Atom allows XHTML content as child elements rather than character data. The existing helper only returned the first text/CDATA child, so valid type="xhtml" summaries and content were silently dropped from converted feeds. This loses the most important part of many entries for downstream LLM and indexing workflows.

Validation

  • New regression tests reproduce the loss on main and cover XHTML summary, XHTML content, and unchanged plain-text content behavior (2 passed)
  • Existing RSS/Atom vector coverage: 7 passed
  • Black check: passed
  • mypy for the changed source and tests: passed
  • git diff --check: passed

I also ran the wider vector file in the minimal environment: 63 cases passed; 48 optional-format cases could not run because DOCX/XLSX/PDF/PPTX and related extras were not installed.

@weivwang

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@weivwang
will wang (weivwang) marked this pull request as ready for review August 13, 2026 07:53
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