public function render_doc($doc_contents) { list(, $content) = explode('endprologue.', $doc_contents . 'endprologue.'); $this->insert_toc = true; if ($this->is_todo) { $content = $this->t("WARNING: This guide has *NOT* been fully ported from Rails. Check how you can \"contribute to improve Akelos\":/contribute\n") . $content; } return $this->_afterRender(AkTextHelper::textilize($this->_beforeRender($content))); }
public function render_doc($doc_contents) { return $this->_afterRender(AkTextHelper::textilize($this->_beforeRender($doc_contents))); }
/** * Returns the "$text" with all the Textile codes turned into HTML-tags, but * without the regular bounding <p> tag. */ static function textilize_without_paragraph($text, $options = array()) { return preg_replace('/^<p([A-Za-z0-9& ;\\-=",\\/:\\.\']+)?>(.+)<\\/p>$/u', '\\2', AkTextHelper::textilize($text, $options)); }
public function convert() { require_once AK_ACTION_PACK_DIR . DS . 'helpers' . DS . 'text_helper.php'; return AkTextHelper::textilize($this->source); }