What is your current setup for .md docs?
I am using VS code with the grammarly extension for editing, then have a mkdocs static site generator from the docs and then to create a PDF version, I am using pandoc.
I've had great fun working with converting md files to PDF with pandoc. Only annoying element is that it needs a pdflatex engine to be installed also.
Quite a nice clean markdown editing tool with split views like OverLeaf.
www.hackmd.io