We have a built in HTML → Markdown convertor library, it is not perfect but it does the job for the quote function.
You could pass all the posts through that I guess, but what you are describing here, to me, sounds like a large amount of custom work. I would recommend reaching out the the community on Marketplace and putting a $$$ value on the job.