Lines Matching refs:block

43         foreach ($blocks as $block) {
44 if ($block[0] == 'text') {
45 $result .= $block[1];
54 protected function renderParagraph($block) { argument
58 $this->renderAbsy($block['content']);
66 protected function renderText($block) { argument
67 $contentLines = preg_split('/ +\n/', $block[1]);
84 protected function renderCode($block) { argument
86 if (array_key_exists('language', $block)) {
87 $lang = $block['language'];
90 $this->renderer->code($block['content'], $lang);
97 protected function renderHeadline($block) { argument
98 $content = $this->collectText($block['content']);
100 …$this->renderer->header(html_entity_decode($content), $block['level'], $this->rendererContext['pos…
124 protected function renderHtml($block) { argument
125 $content = $block['content']."\n";
143 protected function renderInlineHtml($block) { argument
144 $content = $block[1];
164 protected function renderList($block) { argument
167 if ($block['list'] == 'ol') {
173 foreach ($block['items'] as $item => $itemLines) {
185 if ($block['list'] == 'ol') {
196 protected function renderQuote($block) { argument
200 $this->renderAbsy($block['content']);
208 protected function renderHr($block) { argument
216 protected function renderTable($block) { argument
221 $cols = $block['cols'];
223 foreach ($block['rows'] as $row) {
256 protected function renderInlineCode($block) { argument
258 $this->renderer->cdata($block[1]);
266 protected function renderStrong($block) { argument
270 $this->renderAbsy($block[1]);
276 protected function renderEmph($block) { argument
280 $this->renderAbsy($block[1]);
288 protected function renderEmail($block) { argument
289 $this->renderer->emaillink($block[1]);
294 protected function renderUrl($block) { argument
295 $this->renderer->externallink($block[1]);
304 private function lookupRefKeyWithFallback($prefix, $block) { argument
305 if (!isset($block['refkey'])) {
306 return $block;
309 if (($ref = $this->lookupReference($block['refkey'])) !== false) {
310 return array_merge($block, $ref);
314 if (strncmp($block['orig'], $prefix, $prefix_len) === 0) {
316 $this->renderAbsy($this->parseInline(substr($block['orig'], $prefix_len)));
318 $this->renderer->cdata($block['orig']);
339 protected function renderLink($block) { argument
342 if (($block = $this->lookupRefKeyWithFallback('[', $block)) === false) {
347 $url = $block['url'];
348 $text = $this->collectText($block['text']);
349 $title = $block['title'];
449 protected function renderImage($block) { argument
452 if (($block = $this->lookupRefKeyWithFallback('![', $block)) === false) {
457 $url = $block['url'];
458 $text = $block['text'];
471 protected function renderStrike($block) { argument
475 $this->renderAbsy($block[1]);
483 protected function renderAutoUrl($block) { argument
484 $this->renderer->externallink($block[1]);