Add extensible content parser interface#8
Merged
Conversation
Introduce a pluggable content parser system for the `content` union field in site.standard.document records. - Add Content_Parser interface for custom parser implementations. - Wire content parsing into Document transformer with two filters: atmosphere_content_parser (swap/disable parser) and atmosphere_document_content (modify parsed output). - Add ?atproto query param preview endpoint for inspecting the document record JSON (requires edit_posts capability). - Always set the required `site` field in document records, falling back to the site URL when no publication record exists.
This was referenced Mar 23, 2026
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.
Proposed changes:
Content_Parserinterface for pluggable content parsing of thecontentunion field insite.standard.documentrecords.atmosphere_content_parser(swap/disable parser) andatmosphere_document_content(modify parsed output).?atprotopreview endpoint on singular posts to inspect the document record JSON (requiresedit_postscapability).sitefield in document records, falling back to the site URL when no publication record exists.Split from #3 — this PR contains the generic extensible infrastructure. The Markpub parser implementation follows in a stacked PR.
Other information:
Testing instructions:
?atprotopreview on a published post returns valid JSON (when logged in withedit_postscapability).?atprotois not accessible when logged out.contentfield is absent from the record (no parser registered by default).sitefield is always present in document records.Changelog entry
Changelog Entry Details
Significance
Type
Message