diff --git a/Parsedown.php b/Parsedown.php index 8b6c423..c8b6a53 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -1233,7 +1233,7 @@ class Parsedown ); } - if (preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $excerpt, $matches)) + if ($excerpt[1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $excerpt, $matches)) { return array( 'markup' => $matches[0],