diff --git a/Parsedown.php b/Parsedown.php index 30db1dd..4dec4eb 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -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;