update a markdown file