markdown() public method

See also: Bolt\Twig\Handler\HtmlHandler::markdown()
public markdown ( $content )
Example #1
0
 public function testMarkdown()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['html'] = $this->getMockHandler('HtmlHandler', 'markdown');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->markdown(null);
 }
Example #2
0
 public function testSlug()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $twig = new TwigExtension($app, $handlers, false);
     $this->assertEquals('<h1>My <strong>big</strong> title</h1>', $twig->markdown("# My **big** title"));
 }