@@ 922-934 (lines=13) @@ | ||
919 | $marker_space = $matches[3]; |
|
920 | $tailing_blank_line =& $matches[5]; |
|
921 | ||
922 | if ($leading_line || $tailing_blank_line || |
|
923 | preg_match('/\n{2,}/', $item)) |
|
924 | { |
|
925 | # Replace marker with the appropriate whitespace indentation |
|
926 | $item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
|
927 | $item = $this->runBlockGamut($this->outdent($item)."\n"); |
|
928 | } |
|
929 | else { |
|
930 | # Recursion for sub-lists: |
|
931 | $item = $this->doLists($this->outdent($item)); |
|
932 | $item = preg_replace('/\n+$/', '', $item); |
|
933 | $item = $this->runSpanGamut($item); |
|
934 | } |
|
935 | ||
936 | return "<li>" . $item . "</li>\n"; |
|
937 | } |
|
@@ 2754-2763 (lines=10) @@ | ||
2751 | $marker_space = $matches[2]; |
|
2752 | $def = $matches[3]; |
|
2753 | ||
2754 | if ($leading_line || preg_match('/\n{2,}/', $def)) { |
|
2755 | # Replace marker with the appropriate whitespace indentation |
|
2756 | $def = str_repeat(' ', strlen($marker_space)) . $def; |
|
2757 | $def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
|
2758 | $def = "\n". $def ."\n"; |
|
2759 | } |
|
2760 | else { |
|
2761 | $def = rtrim($def); |
|
2762 | $def = $this->runSpanGamut($this->outdent($def)); |
|
2763 | } |
|
2764 | ||
2765 | return "\n<dd>" . $def . "</dd>\n"; |
|
2766 | } |