fix mentions in code blocks

This fixes #1128

#raw_mentions method was unable to remove the code blocks because the post was not being run through the markdown formatter before checking for mentions.