markdown generation to the new file