Пример #1
0
 /**
  * Parses Markdown file for content
  *
  * @param  string $file The loaded Markdown file as a string
  * @return string       The parsed string as HTML
  * @codeCoverageIgnore
  */
 protected function parse_content($file)
 {
     $content = preg_replace('#/\\*.+?\\*/#s', '', $file);
     return $this->parser->defaultTransform($content);
 }
Пример #2
0
 /**
  * @param string $item
  *
  * @return string
  */
 public function convert($item)
 {
     return $this->markdown->transform($item);
 }