escape square brackets for markdown