Adding handling for listitem with multiple child elements including figure elements