Rewrite plain text file to markup language