Adopt markup to new environment