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

paragraph blocks preceded by a list block should not produce exceptions

This commit is contained in:
Emanuil 2013-07-21 18:44:26 +03:00
parent ec5f2c6f31
commit 5bbbabe8aa

View File

@ -147,7 +147,7 @@ class Parsedown
unset($block);
}
elseif (isset($list) and $block[0] === ' ') # list item block
elseif (isset($block) and isset($list) and $block[0] === ' ') # list item block
{
$list .= "\n\n".$block;