It was an early sign of Democrats’ off-year electoral strength when James Malone, the former mayor of East Petersburg, defeated Lancaster County Commissioner Josh Parsons in a March special election.