@@ 82-92 (lines=11) @@ | ||
79 | /** |
|
80 | * Consume lines for an ordered list |
|
81 | */ |
|
82 | protected function consumeOl($lines, $current) |
|
83 | { |
|
84 | // consume until newline |
|
85 | ||
86 | $block = [ |
|
87 | 'list', |
|
88 | 'list' => 'ol', |
|
89 | 'items' => [], |
|
90 | ]; |
|
91 | return $this->consumeList($lines, $current, $block, 'ol'); |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Consume lines for an unordered list |
|
@@ 97-107 (lines=11) @@ | ||
94 | /** |
|
95 | * Consume lines for an unordered list |
|
96 | */ |
|
97 | protected function consumeUl($lines, $current) |
|
98 | { |
|
99 | // consume until newline |
|
100 | ||
101 | $block = [ |
|
102 | 'list', |
|
103 | 'list' => 'ul', |
|
104 | 'items' => [], |
|
105 | ]; |
|
106 | return $this->consumeList($lines, $current, $block, 'ul'); |
|
107 | } |
|
108 | ||
109 | private function consumeList($lines, $current, $block, $type) |
|
110 | { |