HTML/CSS typography can be very sophisticated.
HTML + CSS isn't perfect, of course, but the difference between HTML and professional typesetting is much, much smaller than the difference between Word and professional typesetting.
Put something at the bottom of the current page, like a footnote.
(I've self-published a book that way and was surprised at how well it worked.)
It's probably not good for serious publishing but I found it hell of a lot easier to work with than LaTeX and/or Word.
* The first real kerning issue is the third word "wondering", which looks like "wo n d erin g" to me. The kerning is terrible, but that is probably more of a font issue.
* There should be no line break between the words: >>overpowering circumstance?”<< Probably should hyphenate circum-stance.
The kerning issue is due to an existing bug with PhantomJS on Linux [1]. Hyphenation is a feature I've been wanting to do for a while but haven't managed yet due to the lack of a decent hyphenation engine for JS [2].
To quote from the readme, the program is "a very early version with a number of problems". But my point of "it's finicky but possible" still stands.
[1]: https://github.com/ariya/phantomjs/issues/12016 [2]: https://github.com/andrey-p/apocalism-js/issues/18
LaTeX's hyphenation and math have no (non-JS) match in HTML/CSS, but just about everything else is very matchable. You can enable kerning based on OpenType GPOS, you can control page breaks (with page-break-inside or widows, for instance), and just about anything else that you can think of.
Modern HTML + CSS is amazingly capable, and this isn't fully appreciated yet.
I also generally disliked how some features were environments (document, abstract figure) whereas others are commands (sections, subsections, paragraphs, etc). Inconsistencies in what things are passed to various commands as options vs. arguments were irritating, and it's always a bear, for example, if you need to pass say math-ey stuff an argument. E.g. \caption{$a+b$} Nope. Can't do it.
I don't disagree in general about some of the flaws of LaTeX, but am I missing something about this one? Using maths in a caption works fine.
Solution: https://en.wikibooks.org/wiki/LaTeX/Hyperlinks#Problems_with...
There are some clean slate attempts, done with much better languages. See Patoline, for example.