Add support for links on block level elements (Fixes #584)