Skip to content

Support text nodes#98

Merged
adgad merged 3 commits into
mainfrom
support-text-nodes
Sep 5, 2025
Merged

Support text nodes#98
adgad merged 3 commits into
mainfrom
support-text-nodes

Conversation

@adgad
Copy link
Copy Markdown
Collaborator

@adgad adgad commented Sep 5, 2025

We have a few use cases where we are publishing bodies with text
content:

  • Some articles have trailing text before the body tag closes (we were
    previously handling this in the from-bodyxml transformer, but it was a
    hack)
  • FT Events publish a body without any tags i.e. just text
  • CCC fallbacks and Clip transcripts currently publish a body with just
    text

There's not a strong reason not to support Text as a valid child of Body
(despite the fact Spark doesn't typically allow it), so let's allow it.

Other changes

Some minor tweaks and fixes to some of our tests and fixtures

@adgad adgad requested review from a team as code owners September 5, 2025 11:44
We have a few use cases where we are publishing bodies with text
content:
- Some articles have trailing text before the body tag closes (we were
  previously handling this in the from-bodyxml transformer, but it was a
  hack)
- FT Events publish a body without any tags i.e. just text
- CCC fallbacks and Clip transcripts currently publish a body with just
  text

There's not a strong reason not to support Text as a valid child of Body
(despite the fact Spark doesn't typically allow it), so let's allow it.
@adgad adgad force-pushed the support-text-nodes branch from b510459 to 001cba8 Compare September 5, 2025 13:02
@epavlova epavlova requested a review from a team September 5, 2025 14:55
@adgad adgad merged commit 1e271e9 into main Sep 5, 2025
2 checks passed
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.

2 participants