refactor: swap unified pipeline for Satteri#404
Merged
Conversation
…x content, migrate wrap original image plugin to be a satteri plugin
6385119 to
70b9520
Compare
jacobgkau
approved these changes
Jul 6, 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.
Summary
Moves markdown processing off
unified/remark/rehype and onto Satteri's native mdast pipeline. Also drops the third-partyastro-rehype-relative-markdown-linksin favor of our own@system76/satteri-relative-markdown-links@1.0.0, and picks up a minor Astro bump along the way.Changes
astro.config.mjs:unified({ remarkPlugins, rehypePlugins })→satteri({ mdastPlugins }).@astrojs/markdown-remark,astro-rehype-relative-markdown-links, and directunified; add@astrojs/markdown-satteri ^0.3.3,satteri ^0.9.4, and@system76/satteri-relative-markdown-links ^1.0.0. Bumpastro^7.0.3→^7.0.6and pnpm11.9.0→11.10.0.src/plugins/remark-wrap-images-with-originals.ts→src/plugins/satteri-wrap-images-with-originals.tsand rewrite as a Satteri mdast plugin:defineMdastPluginwith animagevisitor andctx.wrapNode, replacing the hand-rolled recursivewalk. Source of the containing markdown file now comes fromctx.fileURL(viafileURLToPath) rather thanfile.history[0].pnpm-workspace.yaml: add aminimumReleaseAgeExcludeentry for@system76/satteri-relative-markdown-links@1.0.0so the cooldown gate doesn't hold back the fresh internal publish.