Пример #1
0
 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)));
 }
Пример #2
0
 public function render_doc($doc_contents)
 {
     return $this->_afterRender(AkTextHelper::textilize($this->_beforeRender($doc_contents)));
 }
Пример #3
0
 /**
  * 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));
 }
Пример #4
0
 public function convert()
 {
     require_once AK_ACTION_PACK_DIR . DS . 'helpers' . DS . 'text_helper.php';
     return AkTextHelper::textilize($this->source);
 }