Michelf/Markdown.php 1 location
|
@@ 950-952 (lines=3) @@
|
| 947 |
|
*/ |
| 948 |
|
protected function _doHeaders_callback_setext($matches) { |
| 949 |
|
// Terrible hack to check we haven't found an empty list item. |
| 950 |
|
if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) { |
| 951 |
|
return $matches[0]; |
| 952 |
|
} |
| 953 |
|
|
| 954 |
|
$level = $matches[2]{0} == '=' ? 1 : 2; |
| 955 |
|
|
Michelf/MarkdownExtra.php 1 location
|
@@ 1124-1126 (lines=3) @@
|
| 1121 |
|
* @return string |
| 1122 |
|
*/ |
| 1123 |
|
protected function _doHeaders_callback_setext($matches) { |
| 1124 |
|
if ($matches[3] === '-' && preg_match('{^- }', $matches[1])) { |
| 1125 |
|
return $matches[0]; |
| 1126 |
|
} |
| 1127 |
|
|
| 1128 |
|
$level = $matches[3]{0} === '=' ? 1 : 2; |
| 1129 |
|
|