/** * Returns the parsed content * @return string */ public function getContent() { if (!$this->parsedContent) { $this->parsedContent = MarkdownFactory::getMarkdownRenderer()->transform($this->getRawContent()); } return $this->parsedContent; }
/** * 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); }