|
@@ 959-971 (lines=13) @@
|
| 956 |
|
$marker_space = $matches[3]; |
| 957 |
|
$tailing_blank_line =& $matches[5]; |
| 958 |
|
|
| 959 |
|
if ($leading_line || $tailing_blank_line || |
| 960 |
|
preg_match('/\n{2,}/', $item)) |
| 961 |
|
{ |
| 962 |
|
# Replace marker with the appropriate whitespace indentation |
| 963 |
|
$item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
| 964 |
|
$item = $this->runBlockGamut($this->outdent($item)."\n"); |
| 965 |
|
} |
| 966 |
|
else { |
| 967 |
|
# Recursion for sub-lists: |
| 968 |
|
$item = $this->doLists($this->outdent($item)); |
| 969 |
|
$item = preg_replace('/\n+$/', '', $item); |
| 970 |
|
$item = $this->runSpanGamut($item); |
| 971 |
|
} |
| 972 |
|
|
| 973 |
|
return "<li>" . $item . "</li>\n"; |
| 974 |
|
} |
|
@@ 2766-2775 (lines=10) @@
|
| 2763 |
|
$marker_space = $matches[2]; |
| 2764 |
|
$def = $matches[3]; |
| 2765 |
|
|
| 2766 |
|
if ($leading_line || preg_match('/\n{2,}/', $def)) { |
| 2767 |
|
# Replace marker with the appropriate whitespace indentation |
| 2768 |
|
$def = str_repeat(' ', strlen($marker_space)) . $def; |
| 2769 |
|
$def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
| 2770 |
|
$def = "\n". $def ."\n"; |
| 2771 |
|
} |
| 2772 |
|
else { |
| 2773 |
|
$def = rtrim($def); |
| 2774 |
|
$def = $this->runSpanGamut($this->outdent($def)); |
| 2775 |
|
} |
| 2776 |
|
|
| 2777 |
|
return "\n<dd>" . $def . "</dd>\n"; |
| 2778 |
|
} |