Michelf/Markdown.php 1 location
|
@@ 964-966 (lines=3) @@
|
| 961 |
|
*/ |
| 962 |
|
protected function _doHeaders_callback_setext($matches) { |
| 963 |
|
// Terrible hack to check we haven't found an empty list item. |
| 964 |
|
if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) { |
| 965 |
|
return $matches[0]; |
| 966 |
|
} |
| 967 |
|
|
| 968 |
|
$level = $matches[2][0] == '=' ? 1 : 2; |
| 969 |
|
|
Michelf/MarkdownExtra.php 1 location
|
@@ 1140-1142 (lines=3) @@
|
| 1137 |
|
* @return string |
| 1138 |
|
*/ |
| 1139 |
|
protected function _doHeaders_callback_setext($matches) { |
| 1140 |
|
if ($matches[3] === '-' && preg_match('{^- }', $matches[1])) { |
| 1141 |
|
return $matches[0]; |
| 1142 |
|
} |
| 1143 |
|
|
| 1144 |
|
$level = $matches[3][0] === '=' ? 1 : 2; |
| 1145 |
|
|