|
@@ 793-794 (lines=2) @@
|
| 790 |
|
} |
| 791 |
|
function _doHeaders_callback_setext($matches) { |
| 792 |
|
# Terrible hack to check we haven't found an empty list item. |
| 793 |
|
if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) |
| 794 |
|
return $matches[0]; |
| 795 |
|
|
| 796 |
|
$level = $matches[2]{0} == '=' ? 1 : 2; |
| 797 |
|
$block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>"; |
|
@@ 2496-2497 (lines=2) @@
|
| 2493 |
|
return $text; |
| 2494 |
|
} |
| 2495 |
|
function _doHeaders_callback_setext($matches) { |
| 2496 |
|
if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) |
| 2497 |
|
return $matches[0]; |
| 2498 |
|
$level = $matches[3]{0} == '=' ? 1 : 2; |
| 2499 |
|
$attr = $this->doExtraAttributes("h$level", $dummy =& $matches[2]); |
| 2500 |
|
$block = "<h$level$attr>".$this->runSpanGamut($matches[1])."</h$level>"; |