public function toHTML($text) { $text = $this->preTransformText($text); $text = MarkdownExtra::defaultTransform($text); $text = SmartyPants::defaultTransform($text); return $this->postTransformText($text); }
public static function renderContent($content) { // check again because page config if (!empty(static::$config['process_content'])) { return SmartyPants::defaultTransform($content, static::$config['options']); } return $content; }
protected function processEscapes($_) { # # Adding a few more escapes to SmartyPants's escapes: # # Escape Value # ------ ----- # \, , # \< < # \> > # $_ = parent::processEscapes($_); $_ = str_replace(array('\\,', '\\<', '\\>', '\\<', '\\>'), array(',', '<', '>', '<', '>'), $_); return $_; }