A good description of the ebbs and flows of a career in software development by a 30+ year veteran of software development. See: Is software development really a dead-end job after 35-40? by Kurt Guntheroth. Note that exceptions do exist but may be rare.
Unless you totally give up on document formatting compatibility. The work around for LibreOffice is to distributr read-only versions of documents as PDF since PDF generally preserves the original look of documents. Also see on Quora:
Why doesn’t anyone compete with Microsoft and create a new, better Microsoft office suite? by Ed Horch.