Updated the markdown function.