Rewrite plain text to markup language