@@ 200-206 (lines=7) @@ | ||
197 | */ |
|
198 | protected function renderLink($block) |
|
199 | { |
|
200 | if (isset($block['refkey'])) { |
|
201 | if (($ref = $this->lookupReference($block['refkey'])) !== false) { |
|
202 | $block = array_merge($block, $ref); |
|
203 | } else { |
|
204 | return $block['orig']; |
|
205 | } |
|
206 | } |
|
207 | ||
208 | $url = $block['url']; |
|
209 | $text = $this->renderAbsy($block['text']); |
|
@@ 230-236 (lines=7) @@ | ||
227 | */ |
|
228 | protected function renderImage($block) |
|
229 | { |
|
230 | if (isset($block['refkey'])) { |
|
231 | if (($ref = $this->lookupReference($block['refkey'])) !== false) { |
|
232 | $block = array_merge($block, $ref); |
|
233 | } else { |
|
234 | return $block['orig']; |
|
235 | } |
|
236 | } |
|
237 | ||
238 | // TODO create figure with caption with title |
|
239 | $replaces = [ |