typst (GitHub, documentation) was recently made open-source. It is a powerful markup language with scripting support. The compiler is written in
rust, so there might be a way to compile to
It could be an awesome tool for the scientific community and beyond to be integrated into cryptpad for online collaboration.