Remix.run Logo
Princesseuh 6 hours ago

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!

steveklabnik 2 hours ago | parent | next [-]

My personal website uses Astro, so I'll be tickled that Rust is now in there too. Thanks for your work!

Princesseuh an hour ago | parent | next [-]

Love everything you do Steve, consider that I've done it for you

mrsssnake an hour ago | parent | prev [-]

tickle tickle

genshii 4 hours ago | parent | prev | next [-]

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 :)

ZeWaka 6 hours ago | parent | prev | next [-]

How does Satteri compare to a standard library like marked (https://github.com/markedjs/marked)?

Princesseuh 5 hours ago | parent [-]

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!

ZeWaka 4 hours ago | parent [-]

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!

BSTRhino 4 hours ago | parent | prev | next [-]

Very cool! What was the trickiest part of coding Sätteri?

Princesseuh 4 hours ago | parent [-]

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!

toddmorey 6 hours ago | parent | prev | next [-]

Thanks for your work on this!

BorisMelnik 5 hours ago | parent | prev | next [-]

great job, that is a huge accomplishment.

stronglikedan 5 hours ago | parent | prev | next [-]

love the color scheme

keepupnow 6 hours ago | parent | prev [-]

For the good of humanity, I must ask... How much Claude? How much human?