From a589bcac79f81e90cc92fb8bf4a706d35cfdc3da Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Fri, 31 Jul 2015 01:33:21 +0300 Subject: [PATCH] resolve #342 --- Parsedown.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 3a2803a..59705fd 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -665,7 +665,9 @@ class Parsedown if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches)) { - if (in_array($matches[1], $this->textLevelElements)) + $element = strtolower($matches[1]); + + if (in_array($element, $this->textLevelElements)) { return; }