mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-25 00:40:13 +02:00
Fix tests against php-markdown 1.5
The dev version of php-markdown is wrongly aliased as 1.4.x-dev right now, so the build against dev versions installs the library with 1.5.0 features.
This commit is contained in:
parent
cbdb33b243
commit
9154189409
|
@ -299,6 +299,19 @@ EOF;
|
|||
8. Parish
|
||||
EOF;
|
||||
|
||||
// Since version 1.5.0, the ordered lists support this new feature.
|
||||
if (property_exists($parser, 'enhanced_ordered_list')) {
|
||||
|
||||
$html = <<<EOF
|
||||
<ol start="3">
|
||||
<li>Bird</li>
|
||||
<li>McHale</li>
|
||||
<li>Parish</li>
|
||||
</ol>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
$this->assertSame($html, $parser->transform($text));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue