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:
2014-06-30 14:33:09 +00:00
parent 18fe0913ae
commit 0b8eede15c
2 changed files with 18 additions and 0 deletions

View File

@@ -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"));
}
}