I know that there are a lot of ways to "convert" LaTeX source to HTML markup that, when rendered, resembles the hypothetical original PDF.
Is there such a package that works within LaTeX? I'm wondering whether to work towards a package (loaded via \RequirePackage before the preamble) that applies changes such as \def\textit#1{<i>#1</i>}, so that by the final expansion it has written out HTML source to an auxilliary file.
Has this been done? Might it be plausible?
tex4htuses LaTeX,htlatexscript in fact is basically\RequirePackage{tex4ht}\input{filename.tex}– michal.h21 Jun 19 '15 at 19:24