revert back some markup replacings