markdown : BUG : in code, don't allow to have list. Just code !
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1509 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -230,4 +230,21 @@ base</code></pre>");
|
||||
$md = new markdown ();
|
||||
printf ($md->html ("<test@example.com>"));
|
||||
}
|
||||
|
||||
// Chaining
|
||||
public function testChain1 ()
|
||||
{
|
||||
$this->expectOutputString("<h1>t1</h1><h2>t2</h2>");
|
||||
$md = new markdown ();
|
||||
printf ($md->html ("# t1\n## t2"));
|
||||
}
|
||||
|
||||
public function testChainCode1 ()
|
||||
{
|
||||
|
||||
$this->expectOutputString(" <pre><code>
|
||||
* OK</code></pre>");
|
||||
$md = new markdown ();
|
||||
printf ($md->html (" \n * OK"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user