It was an easy fix on ours, nothing broke.
After the crack did you have to pull the lever up.
Depending on your make/model toilet, can you get that info?
The pedal may be held on with 1 bolt under a pop off cover on the side of the lever.
Here's a link to Dometic customer service, if you have a Dometic enter your info.
https://documents.dometic.com/