This problem has risen to the top of many people’s minds at this moment (including mine!). My Show HN for a similar cli + web based solution (https://sdocs.dev) was on the /show page a few days ago (https://news.ycombinator.com/item?id=47777633).
SDocs is cli -> instantly rendered on web
Despite being in the browser, the content of SDocs rendered Markdown files remain local to you. SDoc urls contain your markdown document's content in compressed base64 in the url fragment (the bit after the `#`):
https://sdocs.dev/#md=GzcFAMT...(this is the contents of your document)...
The url fragment is never sent to the server (see https://developer.mozilla.org/en-US/docs/Web/URI/Reference/F...: "The fragment is not sent to the server when the URI is requested; it is processed by the client").The sdocs.dev webapp is purely a client side decoding and rendering engine for the content stored in the url fragment. This also means you can share your .md files privately by sharing the url.
- focus, visual, source modes
- full mermaid diagrams including -beta
- math
- inline styles including e.g. highlights, super/subscripts, etc.
- import/export doc types
- file organizer in addition to outline mode
- themes for screen and print
- GitHub GFM tables work, "all features you care about" supported
- beautiful
- multi-platform
- no subscription, one time $14.99 (pro or con: not in app store)