|
@@ 931-932 (lines=2) @@
|
| 928 |
|
} |
| 929 |
|
function _doHeaders_callback_setext($matches) { |
| 930 |
|
# Terrible hack to check we haven't found an empty list item. |
| 931 |
|
if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) |
| 932 |
|
return $matches[0]; |
| 933 |
|
|
| 934 |
|
$level = $matches[2]{0} == '=' ? 1 : 2; |
| 935 |
|
$block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>"; |
|
@@ 2268-2269 (lines=2) @@
|
| 2265 |
|
return " id=\"$attr\""; |
| 2266 |
|
} |
| 2267 |
|
function _doHeaders_callback_setext($matches) { |
| 2268 |
|
if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) |
| 2269 |
|
return $matches[0]; |
| 2270 |
|
$level = $matches[3]{0} == '=' ? 1 : 2; |
| 2271 |
|
$attr = $this->_doHeaders_attr($id =& $matches[2]); |
| 2272 |
|
$block = "<h$level$attr>".$this->runSpanGamut($matches[1])."</h$level>"; |