|
@@ 1015-1017 (lines=3) @@
|
| 1012 |
|
function _doHeaders_callback_setext($matches) |
| 1013 |
|
{ |
| 1014 |
|
# Terrible hack to check we haven't found an empty list item. |
| 1015 |
|
if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) { |
| 1016 |
|
return $matches[0]; |
| 1017 |
|
} |
| 1018 |
|
|
| 1019 |
|
$level = $matches[2]{0} == '=' ? 1 : 2; |
| 1020 |
|
$block = "<h$level>" . $this->runSpanGamut($matches[1]) . "</h$level>"; |
|
@@ 2857-2859 (lines=3) @@
|
| 2854 |
|
|
| 2855 |
|
function _doHeaders_callback_setext($matches) |
| 2856 |
|
{ |
| 2857 |
|
if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) { |
| 2858 |
|
return $matches[0]; |
| 2859 |
|
} |
| 2860 |
|
$level = $matches[3]{0} == '=' ? 1 : 2; |
| 2861 |
|
$attr = $this->doExtraAttributes("h$level", $dummy =& $matches[2]); |
| 2862 |
|
$block = "<h$level$attr>" . $this->runSpanGamut($matches[1]) . "</h$level>"; |