I suggest two options there goes:
1) Use latex2html which allows you to pass your latex code to a basic html, but having this I think you can adapt it to your needs. Something that you may not like, is, the equations pass it as an image, but everything depends on the project you are developing. Regarding its use, you execute it from the terminal:
$latex2html codigo_latex.tex
This generates a directory with the name code_latex and inside it all you need as the * .css, * .html ... including the images that will be inserted inside your code (the mentioned equations).
Here is an example of an exit.
2) I do not know if you are familiar with the R programming language , in this language you have a tool called < Markdown (a true wonder, which allows you to generate PDF documents (the most used), doc, html , html5 .... among others.
and good personally I think it's worth investing time to learn it. Here is a good example of what you can do ( see example )
As you can see, the output is not an image, as in the previous case.
Greetings!