adding support for atom:link
forked from the upstream library