Yeah. IMO the ways to handle such cases are:
- Let the OP know about the wrong formatting they used and how to fix it. Wait for some time to fix it. If they don't respond in a couple of days, post the answer as a CW.
- Add the answer from the question as a CW with a note for the OP that if they want, they may add their answer themselves and then delete the CW.