def parse(self, reader: TextReader, document: Element) -> str:
    if re.match('^\\s*<', reader.remain):
        matched = reader.consume(self.pattern)
        if (not matched):
            return ''
        else:
            return self.normalize_link_destination(matched.group(1))
    else:
        return self.parseBareLinkDestination(reader, document)
def parse(self, reader: TextReader, document: Element) -> str:
    if re.match('^\\s*<', reader.remain):
        matched = reader.consume(self.pattern)
        if (not matched):
            return 
        else:
            return self.normalize_link_destination(matched.group(1))
    else:
        return self.parseBareLinkDestination(reader, document)