Boro have turned down several bids from Doncaster for the duo, who will be out of contract next summer.
Chairman Phil Wallace said: "Our transfer policy was clear throughout the process and even though they are both out of contract at the end of this season, we made it clear that we would not sell such important players to a club in the same division as us before the season starts - that would make a mockery of what we're trying to achieve here.
"Mark and Jon have given so much to the club in the past few seasons that they deserved to be treated differently.
"They have both been inspirational for us and we need to keep that drive going as long as possible.
"At the end of the season we'll look at it again, but I'm so pleased we've found the middle ground that allows us all to totally focus on the job in hand. Now it's onwards to the new season."