diff options
author | Emanuil Rusev <hello@erusev.com> | 2015-07-31 01:33:21 +0300 |
---|---|---|
committer | Emanuil Rusev <hello@erusev.com> | 2015-07-31 01:33:21 +0300 |
commit | a589bcac79f81e90cc92fb8bf4a706d35cfdc3da (patch) | |
tree | 0f4a41776cee9598872a9a5f77108424bf90fc98 | |
parent | a9dfc97ddc06ca4739630d029bb3d2e16f3efc12 (diff) | |
download | parsedown-a589bcac79f81e90cc92fb8bf4a706d35cfdc3da.zip parsedown-a589bcac79f81e90cc92fb8bf4a706d35cfdc3da.tar.gz parsedown-a589bcac79f81e90cc92fb8bf4a706d35cfdc3da.tar.bz2 |
resolve #342
-rwxr-xr-x | Parsedown.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |