mark down to text file