> HTML rendering requires you to be connected to the internet

Not really. One can always generate a self-contained html. Both CSS and JS (if needed) can be inline.

True but the webdev idiom is injecting things such as mathjax from a cdn. I guess one can pre-render the page and save that, but that's kind of like a PDF already