def METHOD_NAME(self, m, state):
    line = m.group(0)
    text = m.group(1)
    link = ESCAPE_CHAR.sub(r'\1', m.group(2))
    if link.startswith('<') and link.endswith('>'):
        link = link[1:-1]
    title = m.group(3)
    if title:
        title = ESCAPE_CHAR.sub(r'\1', title[1:-1])
    if line[0] == '!':
        return 'image', link, text, title
    return self.tokenize_link(line, link, text, title, state)