Maybe look at Quarto? Almost every project I start now begins with `quarto project create`. From there I can pivot the material into HTML, .docx, PDF, .PPTX, Typst, LaTeX, and all of them simultaneously.
Which editor or environment do you use to edit these?
I've just looked into this, and as far as I can tell Pandoc is a dependency of Quarto and seems to be where a lot of the magic happens!