Example #1
0
File: Page.php Project: cundd/noshi
 /**
  * Returns the parsed content
  * @return string
  */
 public function getContent()
 {
     if (!$this->parsedContent) {
         $this->parsedContent = MarkdownFactory::getMarkdownRenderer()->transform($this->getRawContent());
     }
     return $this->parsedContent;
 }
Example #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);
 }