Indonesian presidential candidates, Joko Widodo, third left, and Prabowo Subianto greet each other ahead of a televised debate last month. Pic: AP.

JAKARTA, Indonesia (AP) — Indonesia elects a new president on Wednesday with two clear choices: On the one side is a wildly popular former furniture maker and on the other is an ex-army general with a dubious record and once the son-in-law of former dictator Suharto.

Just a few months ago, the election in the world’s third-largest democracy was considered firmly in favor of Joko Widodo, who rose from humble beginnings to become the governor of Jakarta with a squeaky clean political record.

But the race is now too close to call after a late surge by Prabowo Subianto, who has wooed legions of supporters with his calls for nationalism despite allegations of widespread human rights abuses during his military career and his connection with Suharto.

Read more on our Indonesia election build-up:

Who’s who in Indonesia’s presidential election?

Who to follow on Twitter for Indonesian election updates