toHtml("**bold** text\n\n- one\n- two");
$this->assertStringContainsString('bold', $html);
$this->assertStringContainsString('
one', $html);
$this->assertStringContainsString('two', $html);
}
public function testEscapesRawHtmlSoItCannotInjectMarkup(): void
{
$html = (new SecurityMarkdownGateway())->toHtml('');
$this->assertStringNotContainsString('