diff --git a/Tests/markdownTest.php b/Tests/markdownTest.php index 8b46b7a..417e276 100644 --- a/Tests/markdownTest.php +++ b/Tests/markdownTest.php @@ -294,4 +294,18 @@ base"); * line2 end")); } + + public function testUnderscore () + { + $this->expectOutputString("
file1.php or file2.php
"); + $md = new markdown (); + printf ($md->html ("_file1.php_ or _file2.php_")); + } + + public function testCarriageReturn1 () + { + $this->expectOutputString("line1 line2
"); + $md = new markdown (); + printf ($md->html ("line1\nline2\n")); + } }