Made it more flexible by finding all <a> tags with supported formats