Exemplo n.º 1
0
Arquivo: Page.php Projeto: cundd/noshi
 /**
  * Returns the parsed content
  * @return string
  */
 public function getContent()
 {
     if (!$this->parsedContent) {
         $this->parsedContent = MarkdownFactory::getMarkdownRenderer()->transform($this->getRawContent());
     }
     return $this->parsedContent;
 }
Exemplo n.º 2
0
 /**
  * Parse the given Markdown code
  *
  * @param $markdown
  * @return mixed|string
  * @deprecated since 1.0.0 use \Cundd\Noshi\Helpers\MarkdownFactory::getMarkdownRenderer()->transform($markdown)
  */
 protected function parseMarkdown($markdown)
 {
     return MarkdownFactory::getMarkdownRenderer()->transform($markdown);
 }