converting li to p and imgs open in new tab