Skip to content

refactor: swap unified pipeline for Satteri#404

Merged
erinxocon merged 1 commit into
masterfrom
switch-to-satteri
Jul 7, 2026
Merged

refactor: swap unified pipeline for Satteri#404
erinxocon merged 1 commit into
masterfrom
switch-to-satteri

Conversation

@erinxocon

Copy link
Copy Markdown
Member

Summary

Moves markdown processing off unified/remark/rehype and onto Satteri's native mdast pipeline. Also drops the third-party astro-rehype-relative-markdown-links in 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 }).
  • Deps: drop @astrojs/markdown-remark, astro-rehype-relative-markdown-links, and direct unified; add @astrojs/markdown-satteri ^0.3.3, satteri ^0.9.4, and @system76/satteri-relative-markdown-links ^1.0.0. Bump astro ^7.0.3^7.0.6 and pnpm 11.9.011.10.0.
  • Rename src/plugins/remark-wrap-images-with-originals.tssrc/plugins/satteri-wrap-images-with-originals.ts and rewrite as a Satteri mdast plugin: defineMdastPlugin with an image visitor and ctx.wrapNode, replacing the hand-rolled recursive walk. Source of the containing markdown file now comes from ctx.fileURL (via fileURLToPath) rather than file.history[0].
  • pnpm-workspace.yaml: add a minimumReleaseAgeExclude entry for @system76/satteri-relative-markdown-links@1.0.0 so the cooldown gate doesn't hold back the fresh internal publish.

@erinxocon erinxocon requested a review from a team as a code owner July 6, 2026 18:12
@erinxocon erinxocon removed the request for review from a team July 6, 2026 18:13
@erinxocon erinxocon assigned jacobgkau and unassigned jacobgkau Jul 6, 2026
@erinxocon erinxocon requested a review from jacobgkau July 6, 2026 18:13
…x content, migrate wrap original image plugin to be a satteri plugin
@erinxocon erinxocon force-pushed the switch-to-satteri branch from 6385119 to 70b9520 Compare July 6, 2026 18:30
@erinxocon erinxocon merged commit a950a8e into master Jul 7, 2026
2 checks passed
@erinxocon erinxocon deleted the switch-to-satteri branch July 7, 2026 04:29
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.

2 participants