There is htmltex (i.e. almost full stack emitting HTML), it is called latexml. There is also a lot converters, most notably Pandoc.
Still I 100% agree that even HTML is too primitive and too inconsistently implemented for scientific writing.
Still I 100% agree that even HTML is too primitive and too inconsistently implemented for scientific writing.