1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

dense list items that follow sparse ones should not be rendered as sparse ones

This commit is contained in:
Emanuil Rusev 2014-01-31 03:03:52 +02:00
parent e9098aebfa
commit a7510b97e7
3 changed files with 14 additions and 2 deletions

View File

@ -200,13 +200,14 @@ class Parsedown
$blocks []= $block;
unset($block['first']);
$block['last'] = true;
$block['lines'] = array();
$block['lines'] []= preg_replace('/^[ ]{0,4}/', '', $matches[1]);
unset($block['first']);
unset($block['interrupted']);
continue 2;
}

View File

@ -0,0 +1,7 @@
<ul>
<li>
<p>li</p>
</li>
<li>li</li>
<li>li</li>
</ul>

View File

@ -0,0 +1,4 @@
- li
- li
- li