There are three different groups here, each with different things to consider.
First, there's the person who asked the crap post. By editing the post it is possible that they will see an improvement in the quality of the post, look to see what is done, and hopefully write a better post next time. Furthermore, it has been shown that interaction (edits, answers, and comments) on posts helps user retention (in the situation that they do reform) - What happens to new users?What happens to new users?. Editing the post to something better is therefore a good thing for this user.
Secondly, there's the people who see the post. By fixing the post it's not an eyesore. Even if the contents of the post is awful, it's something that doesn't make one click away from the page in disgust from a giant include
or jagged code block lines (inline rather than block quote). This helps set expectations for others that this is what we expect and you should be striving for this level of mastery of Markdown. It is good here too.
Lastly, there's the people who edit the post. They took the time to improve the site. The site is better for it. Yes, the post may be deleted tomorrow, or the next day, or in a year, or never... but the site is still better for it. And if it does, yes, they've lost the two reputation points they gained during that period... but during that period they were deserving of the change. The improvement is an improvement and 'nuff said.
When taking these things into account, one should accept the improvement. If you have more improvements, by all means, make them. But if it can't be fixed beyond the level that the poster did, you should still accept it.
Also, if it's not an improvement and instead puts
random emphasis on words, reject it. That's not an improvement (taking them out, however, is).