@shauna @mauve that is how I've done all my books, except in emacs not VSCode. Pandoc FTW.
Recently I got edits for a book in docx, with a volume of track changes that LibreOffice and Google Docs couldn't handle. Turned out online Word was the only thing that worked.