public function convert(
    $source,
    $adapter = 'hpricot',
    $base_url = null,
    $line_length = 65,
    $link_query_string = null,
    $preserve_styles = true,
    $remove_ids = true,
    $remove_classes = true,
    $remove_comments = true
    )
  {

    $params = array(
      'adapter' => $adapter,
      'base_url' => $base_url,
      'line_length' => $line_length,
      'link_query_string' => $link_query_string,
      'preserve_styles' => $preserve_styles,
      'remove_ids' => $remove_ids,
      'remove_classes' => $remove_classes,
      'remove_comments' => $remove_comments,
    );

    if (filter_var($source, FILTER_VALIDATE_URL)) {
      $params['url'] = $source;
    } else {
      $params['html'] = $source;
    }

    return $this->request($params);

  }