improve preview formatting when editing posts