示例#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);
 }