Re:Astro 7.0
by Princesseuh on Tuesday July 07, 2026 @03:03PM
(#48822126)
I made the Rust compiler and the Rust Markdown pipeline (https://satteri.bruits.org) in this, let me know if you have any questions, glad to answer anything!
[ Parent
| on HN ]
Very cool! What was the trickiest part of coding Sätteri?
Re:Astro 7.0
by Princesseuh on Tuesday July 07, 2026 @04:25PM
(#48823218)
It was tough to create a plugin API that was both performant and intuitive. Especially since the library people were migrating from (remark/rehype) was very laissez-faire in regard to the data you have access to, visiting patterns, etc.
Crossing data between Rust and JS is inherently kinda slow (relatively), so there's a constant push and pull between flexibility and performance that's not always easy to reason about!
How does Satteri compare to a standard library like marked (https://github.com/markedjs/marked)?
Re:Astro 7.0
by Princesseuh on Tuesday July 07, 2026 @03:22PM
(#48822440)
It depends in what regards you mean, I have some benchmarks here if you'd like to take a look at those: https://github.com/Princesseuh/web-markdown-benchmark
The TL;DR is that `marked` is very light, but a bit on the slower side compared to Sätteri and `markdown-it` (and its forks). I'm not sure how friendly the extensibility is, but Sätteri re-use the same AST format as the unified ecosystem, which might feel more friendly.
Both good options, though!
We just use `marked` currently for some light markdown rendering in a game engine. This does look like it offers much better extensibility if we ever needed that - thanks for the clarity!
Thanks for your work on this!
Re:Astro 7.0
by BorisMelnik on Tuesday July 07, 2026 @03:13PM
(#48822299)
great job, that is a huge accomplishment.
Re:Astro 7.0
by stronglikedan on Tuesday July 07, 2026 @03:18PM
(#48822359)
love the color scheme
For the good of humanity, I must ask... How much Claude? How much human?
Just moved my astro project over to v7 and saterri the other day. Writing MDAST/HAST plugins is so much better/easier, so great job there :)
Re:Astro 7.0
by steveklabnik on Tuesday July 07, 2026 @06:25PM
(#48824840)
My personal website uses Astro, so I'll be tickled that Rust is now in there too. Thanks for your work!
Re:Astro 7.0
by Princesseuh on Tuesday July 07, 2026 @07:20PM
(#48825353)
Love everything you do Steve, consider that I've done it for you