parse escaped brackets in links