For example, the IRA member Bobby Sands was elected to the UK parliament while in prison during his (subsequently fatal) hunger strike. Parliament then immediately passed a law banning people from running for parliament from jail.
Of course, the UK is a monarchy, not a republic, so its relevance to the subject at hand is somewhat dubious.