I would probably create separate LaTeX and HTML versions, they have enough differences to make automated conversions problematic. You could make a first version in either of the formats and convert it to the other, and then format each of them separately.
Or, you could create the PDF directly from the HTML using
Prince, for instance.