add support for blank links - refactor a wee bit

Adding support for blank links (href="") - one of the most common use cases - and refactor the code organization a bit