Fix atrociously mangled heading links.