A potentially crackerjack pitchers’ duel between the Cardinals’ unbeaten Carlos Martinez and Washington ace Max Scherzer will go on as scheduled Sunday, despite a legal cloud hanging over Martinez’s head.

Martinez was given permission by the Cardinals to leave the team on Friday — he rejoined the club on Saturday — in order to go to Miami after a civil lawsuit was filed against him by a woman in south Florida.

General manager John Mozeliak said, “We wait. And once we learn more, then we’ll have more of an idea. These are things you just learn as you go.”

Mozeliak said Martinez’s agent, Brian Mejia, had called him on Thursday night, informing Mozeliak of the matter.

“My understanding is that he and his attorney are working on it,” said Mozeliak, who said he didn’t want to speculate on anything involving the suit or its validity.

Manager Mike Matheny said after Saturday’s 6-1 loss to the Nationals that he expected Martinez to make the start on Sunday. Martinez, 4-0 with a 1.93 earned-run average, was not available for comment Saturday.