And we all know what followed : the philosophy-loving moderate , Mohammad Khatami , was replaced as president by a radical militant , Mahmoud Ahmadinejad -- a former military commander who presides over one of the most extreme governments post-revolutionary Iran has yet had .