4 ms·
I'm a fan of TeX2page[1] for converting (La)TeX to HTML. There are also similar TeX/Scribe-inspired markup processors. Scribble[2] comes to mind, and Chibi Sc
by groovy2shoes 10y ago
I'm a fan of TeX2page[1] for converting (La)TeX to HTML. There are also similar TeX/Scribe-inspired markup processors. Scribble[2] comes to mind, and Chibi Scheme[3] even comes with a very lightweight, very configurable "Scribble" processor in the form of `chibi-doc`. Chibi's flavor is a little more similar to TeX (using '\' as the leader rather than '@', for example), if that's important to you.
[1]: https://ds26gte.github.io/tex2page/index.html https://ds26gte.github.io/tex2page/index.html
[2]: https://docs.racket-lang.org/scribble/index.html https://docs.racket-lang.org/scribble/index.html
[3]: http://synthcode.com/wiki/chibi-scheme http://synthcode.com/wiki/chibi-scheme
And here's Chibi's own manual written in it: https://github.com/ashinn/chibi-scheme/blob/master/doc/chibi.scrbl https://github.com/ashinn/chibi-scheme/blob/master/doc/chibi...
I think it would be freakishly easy to adapt chibi-doc into a general text preprocessor rather than an HTML generator, and honestly I've thought about it before. I may just do it yet :)
- heinrichhartman 10y agoWow, tex2page looks really great. I'll might setup a JEKYLL workflow for using it to write blog posts. LaTeX doc semantics are so much better than Markdown / HTML. Also I can see a LISP style macro processor being super awesome. Let me know if you are going to adapt chibi-doc that way.