When ever editing big text projects I used $\Latex$ . Just because Latex is the right tool for the job.
But as it turned out there has been a simpler tool for the job. And it is called Typst.

Why it is simpler:

lim_(x->oo) 1/x = 0

Their GitHub Page