Update to the latest kramdown

Kramdown is out of date and _could_ be the cause of some intermittent
exceptions on whitehall. A couple of tests had to be updated because of
minor variations in behaviour between the versions of kramdown.