fixes bugs with html escaped links and enumeration problems.