def __init__(self, match): self.label = helpers.normalize_label(match.group(1))
def find(cls, text): for match in super(FootnoteRef, cls).find(text): label = helpers.normalize_label(match.group(1)) if label in inline._root_node.footnotes: yield match
def __init__(self, match): self.label = helpers.normalize_label(match.group(1)) self._prefix = re.escape(match.group()) self._second_prefix = r' {1,4}'