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
|
@@ 1126-1128 (lines=3) @@
|
1123 |
|
* @return string |
1124 |
|
*/ |
1125 |
|
protected function _doHeaders_callback_setext($matches) { |
1126 |
|
if ($matches[3] === '-' && preg_match('{^- }', $matches[1])) { |
1127 |
|
return $matches[0]; |
1128 |
|
} |
1129 |
|
|
1130 |
|
$level = $matches[3][0] === '=' ? 1 : 2; |
1131 |
|
|