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'); }
/** * * Processes the text using span-type plugins. * * @param string $text Source text. * * @return string The source text after span parsing. * */ protected function _processSpans($text) { return $this->_markdown->processSpans($text); }