Lines Matching refs:block
8 namespace cebe\markdown\block;
47 $block = [
53 return $this->consumeList($lines, $current, $block, 'ol');
63 $block = [
68 return $this->consumeList($lines, $current, $block, 'ul');
71 private function consumeList($lines, $current, $block, $type) argument
100 if (!isset($block['attr']['start']) && isset($matches[2])) {
101 $block['attr']['start'] = $matches[2];
105 $block['items'][++$item][] = $line;
106 $block['lazyItems'][$item] = $lastLineEmpty;
118 $block['items'][$item][] = $line;
119 $block['lazyItems'][$item] = true;
123 $block['items'][$item][] = $line;
125 …$block['lazyItems'][$item] = empty($nextLine) || !method_exists($this, 'identifyReference') || !$t…
137 $block['items'][$item][] = $line;
147 foreach($block['items'] as $itemId => $itemLines) {
149 if (!$block['lazyItems'][$itemId]) {
159 $block['items'][$itemId] = $content;
162 return [$block, $i];
168 protected function renderList($block) argument
170 $type = $block['list'];
172 if (!empty($block['attr'])) {
173 $output = "<$type " . $this->generateHtmlAttributes($block['attr']) . ">\n";
178 foreach ($block['items'] as $item => $itemLines) {