Esempio n. 1
0
 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');
 }