Over at Stack Overflow, link-only answers should be flagged with the 'not an answer' reason. They are eventually converted to a comment (by a moderator) or deleted.
Meta Stack Overflow discussion: When to flag an answer as “not an answer”?
The rule-of-thumb here is to strip the markup; if you can still regard it as an (attempted) answer without the link, it is still an answer and should not be flagged.
Does the same policy apply here on this site?