remove markdown and keep text file