fixes bugs with html escaped links and enumeration problems.

Fixes
opf#924
opf#926
opf#929
opf#930