Keep text formatting in convertToText