I keep thinking that what I'd really like is a substitute of latex that is based on markdown and CSS. This is a hint of what would be possible, although of course it would take decades to get to the power of latex.
Shame really, because IMO a web-aligned document writing tool chain would be awesome.