code: def autolink(self, link, is_email=False):
          
          text = link = escape_link(link)
          if is_email:
              link = 'mailto:%s' % link
          return '<a href="%s">%s</a>' % (link, text)
docs: Rendering a given link or email address.
  
          :param link: link content or email address.
          :param is_email: whether this is an email or not.