The Breaking Change: Inside Astro 7's Sätteri Architecture
Astro 7 breaks legacy remark and rehype plugins because the build pipeline replaces the JavaScript unified execution chain and mdast / hast tree structures with Sätteri , a native Rust parser and syntax tree representation. When a legacy plugin runs against a Sätteri tree, property lookups such as children , properties , or data.hName miss or return undefined types, causing visitor functions to throw runtime exceptions or silently skip nodes rather than transforming Markdown or HTML.
The causal chain behind the failure is structural and memory-bound. First, raw Markdown and MDX bytes enter Sätteri's Rust scanner, which tokenizes syntax and constructs an arena-allocated Rust AST optimized for linear scans and low heap churn. Second, legacy remark or rehype plugins expect mutable JavaScript plain objects shaped by unist conventions—where nodes carry specific string literals in type fields and arrays in children .…