Cleaning up inline heading list.