adding support for different types of link markup