Change the way hash anchors are handled

For issue #14