/**
  * Apply Textile to the main article fields.
  *
  * This is duplicated from txp_article.php.
  *
  * @param  array $incoming    The incoming fields
  * @param  bool  $use_textile Use Textile or not
  * @return array The $incoming array formatted
  * @access private
  */
 public function textile_main_fields($incoming, $use_textile = 1)
 {
     global $txpcfg;
     $textile = new \Textpattern\Textile\Parser();
     if (!empty($event) and $event == 'article') {
         $incoming['Title_plain'] = $incoming['Title'];
     }
     if ($incoming['textile_body'] == USE_TEXTILE) {
         $incoming['Title'] = $textile->textileThis($incoming['Title'], '', 1);
     }
     $incoming['url_title'] = preg_replace('|[\\x00-\\x1f#%+/?\\x7f]|', '', $incoming['url_title']);
     $incoming['Body_html'] = TXP_Wrapper::format_field($incoming['Body'], $incoming['textile_body'], $textile);
     $incoming['Excerpt_html'] = TXP_Wrapper::format_field($incoming['Excerpt'], $incoming['textile_excerpt'], $textile);
     return $incoming;
 }