by kpghost · 11y ago · 0 comments
You can of course aim for a new typesetting language and just take the typesetting algorithms from TeX, but then it's a completely different product, incompatible with existing TeX packages.
I think compilation to TeX is probably always going to be less successful than compilation from TeX—that is, taking the same code and (slightly) improving the processing. See the pdfTeX (http://www.tug.org/applications/pdftex) and LuaTeX (http://www.luatex.org) projects.
As a remedy to too much ambition even when trying to build directly on TeX, see the fate of LaTeX3 (http://tex.stackexchange.com/questions/953/why-is-latex3-tak...).
markdown --> .tex ____ pdflatex --> .pdf
\
\___ tralics --> ruby_scripts --> .epub