public function render($decryptedContent) { $parser = new PassnoteMarkdown(); $parser->enableNewlines = true; return '<div class="obj-fmt-markdown">' . $parser->parse($decryptedContent) . '</div>'; }
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); }