Exemplo n.º 1
0
 /**
  * Returns a function converting Markdown into HTML.
  * @return \Closure A function converting Markdown into HTML.
  */
 public function getMarkdown() : \Closure
 {
     return function ($value, \Mustache_LambdaHelper $helper) {
         $args = $this->parseArguments($helper->render($value), 'markdown', ['flavor' => Markdown::$defaultFlavor]);
         return Markdown::process($args['markdown'], $args['flavor']);
     };
 }