remove editor artifacts from published document