Write the md file