diff --git a/Parsedown.php b/Parsedown.php index 75c3d7c..b4a73b1 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -141,9 +141,14 @@ class Parsedown if (strpos($line, $block['end']) !== false) # closing tag { - $block['depth'] > 0 - ? $block['depth']-- - : $block['closed'] = true; + if ($block['depth'] > 0) + { + $block['depth']--; + } + else + { + $block['closed'] = true; + } } $block['text'] .= "\n".$line;