code: def main(api_key, markup):
      '''Doing the regex parsing and running the create_html function.'''
      match = GIPHY.search(markup)
  
      attrs = None
  
      if match:
          attrs = dict(
              [(key, value.strip())
               for (key, value) in match.groupdict().items() if value])
  
      else:
          raise ValueError('Error processing input. '
                           'Expected syntax: {}'.format(SYNTAX))
  
      return create_html(api_key, attrsf main(api_key, markup):
      '''Doing the regex parsing and running the create_html function.'''
      match = GIPHY.search(markup)
  
      attrs = None
  
      if match:
          attrs = dict(
              [(key, value.strip())
               for (key, value) in match.groupdict().items() if value])
  
      else:
          raise ValueError('Error processing input. '
                           'Expected syntax: {}'.format(SYNTAX))
  
      return create_html(api_key, attrs)
docs: Doing the regex parsing and running the create_html function.