Modify md file according to provided template.