handle i and em when replacing block elements