Skip to content

fix(rss): emit item and entry links as heading anchors - #2525

Open
Manohar Paturi (ManoharPaturi) wants to merge 2 commits into
microsoft:mainfrom
ManoharPaturi:rss-links-final
Open

Manohar Paturi (ManoharPaturi) wants to merge 2 commits into
microsoft:mainfrom
ManoharPaturi:rss-links-final

Conversation

@ManoharPaturi

Copy link
Copy Markdown

The RSS and Atom converters read the feed-level link but never the per-item one, so every entry came out as a bare heading with no URL to reach. Titles now render as markdown links to the resolved item URL (Atom <link href> attribute; RSS <link> text; relative hrefs resolve against the feed URL when the document URI is known).

No output change for feeds whose items have no link element. Existing RSS suite green (107 passed).

RSS items and Atom entries carry a <link> (or Atom <link href>), but the
converter never read it: the markdown ended up with bare titles and no
way to reach the post. Emit the title as a markdown link to the resolved
URL instead (relative hrefs resolve against the feed URL).

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 11:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When an item has a link this drops the heading marker. heading starts as ## title, then gets replaced with title, so linked RSS/Atom entries stop being headings. Looks like that assignment just needs to keep the ## prefix.

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
@ManoharPaturi

Copy link
Copy Markdown
Author

good catch, fixed. the linked branch now keeps the heading marker, so it renders as a level-2 heading with an anchor instead of a bare paragraph link. all 164 rss tests still green.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rechecked 40d6912. The linked Atom entry now keeps the ## heading marker while wrapping the title in the anchor, so linked items remain level-2 headings. That resolves the formatting issue I raised.

@ManoharPaturi

Copy link
Copy Markdown
Author

thanks for the fast turnaround on all three of these, the heading catch saved the feature from shipping half broken.

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