3 ms·
I made my own markup language (post: http://breuleux.net/blog/quaint.html http://breuleux.net/blog/quaint.html, docs: http://breuleux.net/quaint/ http://breuleu
by breuleux 13y ago
I made my own markup language (post: http://breuleux.net/blog/quaint.html http://breuleux.net/blog/quaint.html, docs: http://breuleux.net/quaint/ http://breuleux.net/quaint/, source: https://github.com/breuleux/quaint https://github.com/breuleux/quaint) and I think it could eventually fit the bill. I designed the syntax to be extremely regular, easy to extend and to stay out of your way. You can embed Python code to extend it (I don't get why you'd make a formatting language Turing complete instead of just embedding a real one). It generates documents in multiple passes and lets you specify what parts depend on what other parts, so back references are easy to implement. Unfortunately, I'm the sole developer and I've only developed it enough to be useful to my own purposes, so it only compiles to HTML and lacks a lot of features.
I'm not sure why you want the ability to embed LaTeX formulas. LaTeX formats math gloriously, but its syntax is not any less horrid for math than it is for anything else. I'd rather write "sum(i <- 1..10, frac(t_i, sigma^2))" than "\sum_{i=1}^{10} \frac{t_i}{\sigma^2}" but maybe that's just me.