diff --git a/Parsedown.php b/Parsedown.php index 134197b..68c7495 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -145,7 +145,7 @@ class Parsedown # Rule - if (isset($line) and preg_match('/^[ ]{0,3}([-*_])([ ]{0,2}\1){2,}[ ]*$/', $line)) + if (isset($line) and $line !== '' and preg_match('/^[ ]{0,3}([-*_])([ ]{0,2}\1){2,}[ ]*$/', $line)) { $rule = true;