fixed problem with parse link and image in markdown parser