Skip to content

Add full post content to RSS feed#1625

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-rss-feed-full-post
Draft

Add full post content to RSS feed#1625
Copilot wants to merge 3 commits intomainfrom
copilot/fix-rss-feed-full-post

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

RSS feed currently only includes post descriptions. Readers cannot view full articles without visiting the site.

Changes

  • Render full markdown to HTML: Use @astrojs/markdown-remark to process post bodies with the same plugin chain as the main site (syntax highlighting, typography transforms, GitHub mentions, external link handling, etc.)

  • Performance optimization: Create markdown processor at module level to avoid recreation on each request

  • Backward compatible: Maintain existing description field alongside new content field

Implementation

// Module-level processor with site plugins
const markdownProcessor = createMarkdownProcessor({
  remarkPlugins: [remarkGfm, remarkEmoji, remarkSmartypants, ...],
  rehypePlugins: [rehypeSlug, rehypeAutolinkHeadings, ...],
  shikiConfig: { themes: { light: 'github-light', dark: 'github-dark' } }
});

export async function GET(context: APIContext) {
  const processor = await markdownProcessor;
  const items = await Promise.all(
    sortedPosts.map(async (post) => {
      const result = await processor.render(post.body, { frontmatter: post.data });
      return { ...item, content: result.code };
    })
  );
  // ...
}

Feed size increases from 105KB to 2.5MB reflecting full content inclusion.

Original prompt

This section details on the original issue you should resolve

<issue_title>RSS feed should contain full post</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

Custom agent used: code
Specialized agent for code changes in this Astro project including JavaScript/TypeScript, Astro components, and SCSS/CSS


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 7, 2026 19:06
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix RSS feed to include full post content Add full post content to RSS feed Feb 7, 2026
Copilot AI requested a review from benbalter February 7, 2026 19:10
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.

RSS feed should contain full post

2 participants