@@ 806-807 (lines=2) @@ | ||
803 | } |
|
804 | function _doHeaders_callback_setext($matches) { |
|
805 | # Terrible hack to check we haven't found an empty list item. |
|
806 | if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) |
|
807 | return $matches[0]; |
|
808 | ||
809 | $level = $matches[2]{0} == '=' ? 1 : 2; |
|
810 | $block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>"; |
|
@@ 2509-2510 (lines=2) @@ | ||
2506 | return $text; |
|
2507 | } |
|
2508 | function _doHeaders_callback_setext($matches) { |
|
2509 | if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) |
|
2510 | return $matches[0]; |
|
2511 | $level = $matches[3]{0} == '=' ? 1 : 2; |
|
2512 | $attr = $this->doExtraAttributes("h$level", $dummy =& $matches[2]); |
|
2513 | $block = "<h$level$attr>".$this->runSpanGamut($matches[1])."</h$level>"; |