Tested changes from johnfmorton:patch-1 pull request on d26f72b under kramdown and maruku.