Try ZeroNet. It works offline and uploads your changes whenever you connect to the Internet. https://cheapskatesguide.org/articles/zeronet.html

GitHub-flavored Markdown & a sane subset of HTML is supported.