Exemplo n.º 1
0
 public function render($decryptedContent)
 {
     $parser = new PassnoteMarkdown();
     $parser->enableNewlines = true;
     return '<div class="obj-fmt-markdown">' . $parser->parse($decryptedContent) . '</div>';
 }
Exemplo n.º 2
0
 public function testParseUrl()
 {
     $md = 'Website: http://example.com';
     $html = $this->parser->parseParagraph($md);
     $this->assertEquals('Website: <a rel="noreferrer" href="http://example.com">http://example.com</a>', $html);
 }