Skip to content

Conversation

@rbren
Copy link
Owner

@rbren rbren commented Jan 14, 2026

Summary

This PR adds support for parsing the subtitle field from RSS feeds.

Changes

  • lib/fields.js: Added 'subtitle' to the fields.feed array so that the parser will extract this field from RSS feeds
  • index.d.ts: Added subtitle?: string; to the Output<U> interface for TypeScript type support

Background

The subtitle element is a common field in RSS feeds, particularly in Atom feeds where it provides a secondary description or tagline for the feed. This change enables the parser to automatically extract and expose this field when present.

Testing

All 38 existing tests pass with these changes.

@rbren can click here to continue refining the PR

- Add 'subtitle' to the fields.feed array in lib/fields.js
- Add subtitle property to Output interface in index.d.ts for TypeScript support

Co-authored-by: openhands <[email protected]>
@rbren
Copy link
Owner Author

rbren commented Jan 14, 2026

@OpenHands add an inline comment explaining these changes

@openhands-ai
Copy link

openhands-ai bot commented Jan 14, 2026

I'm on it! rbren can track my progress at all-hands.dev

@openhands-ai
Copy link

openhands-ai bot commented Jan 14, 2026

I've added inline comments explaining the subtitle field changes and pushed them to the PR. Here's a summary:

Changes Made

Request addressed: Added inline comments explaining the subtitle field changes

Files Modified:

  1. lib/fields.js (line 12): Added comment // Atom feeds use <subtitle> as a secondary description/tagline for the feed
  2. index.d.ts (line 62): Added the same comment to the TypeScript type definition

Verification:

  • Changes are concise and only add explanatory comments to the existing subtitle field additions
  • No extraneous changes were made
  • Changes have been pushed to the add-feed-subtitle-field branch to update PR Add subtitle field to feed fields #293

View full conversation

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.

3 participants