Add source:markdown to RSS feeds#16
Merged
Merged
Conversation
Implements the source:markdown RSS extension Manton documented at https://www.manton.org/2025/11/11/markdown-in-rss.html (namespace https://source.scripting.com/). Each <item> now carries the page's raw markdown source alongside the rendered HTML in <description>, so a reader that knows how can prefer the markdown. This also reshapes the feeds: <description> previously held the diff-summary string (e.g. "Added X to Y"); it now holds the rendered HTML of the revision's content, which is what feed readers actually want to render. JSON Feed gains the matching `content_text` field populated from the same raw markdown source. Wikilinks inside the rendered HTML are resolved against the absolute site root so they survive in external readers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
source:markdownRSS extension (Manton, 2025-11-11; namespacehttps://source.scripting.com/) to both/<page>?m=history_rssand/site/changes.rss.<item>now carries the page's raw markdown source alongside the rendered HTML in<description>.content_textfield populated from the same markdown source.<description>content (the diff summary) is replaced with the rendered HTML of the revision content — that's what feed readers want to render anyway, and the diff summary is still visible in the HTML changes/history views.Test plan
uv run pytest(331 passing)uv run ruff check . && uv run ruff format --check jottit testsuv run pyright🤖 Generated with Claude Code