docs: def linkify(props):
      """
      Wrap plain URLs with link tags.
      """
      match = props['match']
      protocol = match.group(1)
      url = match.group(2)
      href = protocol + url
  
      if props['block']['type'] == BLOCK_TYPES.CODE:
          return href
  
      link_props = {
          'href': href,
      }
  
      if href.startswith('www'):
          link_props['href'] = 'http://' + href
  
      return DOM.create_element('a', link_props, href)