Adding handling for multiple paras and programlistings in listitems