The above demonstration shows how the tablex library is formatted.

Typst is a typesetting language written in Rust and aiming to replace TeX/LaTeX.

I made the first and most used formatter of the language so far 1, it has more than 200 github stars as of right now.

Formatters can be hard to write and maintain and are complex software, Typst is especially challenging given it does care about whitespace unlike many other languages, it's multi mode makes it challenging to keep the semantic untouched. This is why typstfmt has more than two hundreds tests.

You can have a preview of my work here:

[1] : I haven't updated it in a while and typstyle seems like a very good successor.