r/javascript • u/Thick_Jeweler_4018 • 4d ago
Your remark/rehype plugins don't run on Astro 7's Sätteri – drop-in ports
https://github.com/Ashish-CodeJourney/satteri-pluginsAstro 7 moved to Sätteri, a Rust Markdown engine. It's fast, but it has its own AST, so rehype-katex, rehype-slug, rehype-sanitize etc. stop working.
I ported the 10 most-used ones. Each is tested against the original plugin's output, so it's a swap, not a rewrite: slug, autolink-headings, katex, mathjax, sanitize, breaks, github, mdx-frontmatter, validate-links, citation.
The README also has a table of plugins you can just delete, because Sätteri has them built in (gfm, frontmatter, smartypants, directive…).
Live demo: https://satteri-plugins.js.org Repo: https://github.com/Ashish-CodeJourney/satteri-plugins
Which plugin is blocking your upgrade? I'll port the next most-requested one.
1
u/rodriguez-cindy_6 4d ago
Output parity is a useful baseline; do the tests also cover custom plugin options and edge cases?
1
u/Discordbothost 2d ago
Since Sätteri is Rust and the plugins stay JS, is each port re-crossing the WASM/FFI boundary per node, or do you batch the whole AST across once? Curious about the perf story on big docs.