|
@@ 1074-1086 (lines=13) @@
|
| 1071 |
|
$marker_space = $matches[3]; |
| 1072 |
|
$tailing_blank_line =& $matches[5]; |
| 1073 |
|
|
| 1074 |
|
if ($leading_line || $tailing_blank_line || |
| 1075 |
|
preg_match('/\n{2,}/', $item)) |
| 1076 |
|
{ |
| 1077 |
|
# Replace marker with the appropriate whitespace indentation |
| 1078 |
|
$item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
| 1079 |
|
$item = $this->runBlockGamut($this->outdent($item)."\n"); |
| 1080 |
|
} |
| 1081 |
|
else { |
| 1082 |
|
# Recursion for sub-lists: |
| 1083 |
|
$item = $this->doLists($this->outdent($item)); |
| 1084 |
|
$item = preg_replace('/\n+$/', '', $item); |
| 1085 |
|
$item = $this->runSpanGamut($item); |
| 1086 |
|
} |
| 1087 |
|
|
| 1088 |
|
return "<li>" . $item . "</li>\n"; |
| 1089 |
|
} |
|
@@ 2520-2529 (lines=10) @@
|
| 2517 |
|
$marker_space = $matches[2]; |
| 2518 |
|
$def = $matches[3]; |
| 2519 |
|
|
| 2520 |
|
if ($leading_line || preg_match('/\n{2,}/', $def)) { |
| 2521 |
|
# Replace marker with the appropriate whitespace indentation |
| 2522 |
|
$def = str_repeat(' ', strlen($marker_space)) . $def; |
| 2523 |
|
$def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
| 2524 |
|
$def = "\n". $def ."\n"; |
| 2525 |
|
} |
| 2526 |
|
else { |
| 2527 |
|
$def = rtrim($def); |
| 2528 |
|
$def = $this->runSpanGamut($this->outdent($def)); |
| 2529 |
|
} |
| 2530 |
|
|
| 2531 |
|
return "\n<dd>" . $def . "</dd>\n"; |
| 2532 |
|
} |