@@ 1184-1195 (lines=12) @@ | ||
1181 | $marker_space = $matches[3]; |
|
1182 | $tailing_blank_line =& $matches[5]; |
|
1183 | ||
1184 | if ($leading_line || $tailing_blank_line || |
|
1185 | preg_match('/\n{2,}/', $item) |
|
1186 | ) { |
|
1187 | # Replace marker with the appropriate whitespace indentation |
|
1188 | $item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
|
1189 | $item = $this->runBlockGamut($this->outdent($item) . "\n"); |
|
1190 | } else { |
|
1191 | # Recursion for sub-lists: |
|
1192 | $item = $this->doLists($this->outdent($item)); |
|
1193 | $item = preg_replace('/\n+$/', '', $item); |
|
1194 | $item = $this->runSpanGamut($item); |
|
1195 | } |
|
1196 | ||
1197 | return "<li>" . $item . "</li>\n"; |
|
1198 | } |
|
@@ 3149-3157 (lines=9) @@ | ||
3146 | $marker_space = $matches[2]; |
|
3147 | $def = $matches[3]; |
|
3148 | ||
3149 | if ($leading_line || preg_match('/\n{2,}/', $def)) { |
|
3150 | # Replace marker with the appropriate whitespace indentation |
|
3151 | $def = str_repeat(' ', strlen($marker_space)) . $def; |
|
3152 | $def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
|
3153 | $def = "\n" . $def . "\n"; |
|
3154 | } else { |
|
3155 | $def = rtrim($def); |
|
3156 | $def = $this->runSpanGamut($this->outdent($def)); |
|
3157 | } |
|
3158 | ||
3159 | return "\n<dd>" . $def . "</dd>\n"; |
|
3160 | } |