change <img> tag to markdown tag