예제 #1
0
파일: Plugin.php 프로젝트: agentile/foresmo
 protected function _render($text)
 {
     if (is_bool($this->_is_span) && $this->_is_span) {
         $text = $this->_markdown->prepare($text);
         $text = $this->_markdown->processSpans($text);
         $text = $this->_markdown->cleanup($text);
         $text = $this->_markdown->render($text);
         return $text;
     }
     if (is_bool($this->_is_block) && $this->_is_block) {
         return $this->_markdown->transform($text);
     }
     $this->fail('cannot render non-block non-span plugins');
 }
예제 #2
0
파일: Plugin.php 프로젝트: kalkin/solarphp
 /**
  * 
  * Converts all delimited HTML tokens back into HTML.
  * 
  * @param string $text The text to un-tokenize.
  * 
  * @return string The text with HTML tokens replaced.
  * 
  */
 protected function _unHtmlToken($text)
 {
     return $this->_markdown->unHtmlToken($text);
 }