Loop all the markup to handle odd cases.