diff --git a/Parsedown.php b/Parsedown.php index 99664af..1263574 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -494,7 +494,7 @@ class Parsedown # li - if ($deindented_line[0] <= '9' and $deindented_line >= '0' and preg_match('/^([ ]*)\d+[.][ ](.*)/', $line, $matches)) + if ($deindented_line[0] <= '9' and $deindented_line[0] >= '0' and preg_match('/^([ ]*)\d+[.][ ](.*)/', $line, $matches)) { $elements []= $element;