Updated HTML converter to handle ems according to classes applied.