|
@@ 612-616 (lines=5) @@
|
| 609 |
|
preg_match('{^</?(?:' . $enclosing_tag_re . ')\b}', $tag)) |
| 610 |
|
{ |
| 611 |
|
// Increase/decrease nested tag count. |
| 612 |
|
if ($tag[1] === '/') { |
| 613 |
|
$depth--; |
| 614 |
|
} else if ($tag[strlen($tag)-2] !== '/') { |
| 615 |
|
$depth++; |
| 616 |
|
} |
| 617 |
|
|
| 618 |
|
if ($depth < 0) { |
| 619 |
|
// Going out of parent element. Clean up and break so we |
|
@@ 735-739 (lines=5) @@
|
| 732 |
|
// Increase/decrease nested tag count. Only do so if |
| 733 |
|
// the tag's name match base tag's. |
| 734 |
|
if (preg_match('{^</?' . $base_tag_name_re . '\b}', $tag)) { |
| 735 |
|
if ($tag[1] === '/') { |
| 736 |
|
$depth--; |
| 737 |
|
} else if ($tag[strlen($tag)-2] !== '/') { |
| 738 |
|
$depth++; |
| 739 |
|
} |
| 740 |
|
} |
| 741 |
|
|
| 742 |
|
// Check for `markdown="1"` attribute and handle it. |