cleanup markup for publications