lookupReference($block['refkey'])) !== false) { $block = array_merge($block, $ref); } else { if (str_starts_with($block['orig'], '![')) { return '![' . $this->renderAbsy( $this->parseInline(substr($block['orig'], 2)) ); } return $block['orig']; } } if ( preg_match('/\.(mpe?g|mp4|m4v|mov|webm|ogv)$/i', $block['url']) ) { return ''; } elseif ( preg_match('/\.(mp3|m4a|oga|ogg|spx|wav|aiff?)$/i', $block['url']) ) { return ''; } else { return ''
				. $this->escapeHtmlEntities(
					$block['text'],
					ENT_COMPAT | ENT_SUBSTITUTE
				)
				. 'html5 ? '>' : ' />'); } } abstract protected function parseImage($markdown); abstract protected function parseInline($text); abstract protected function renderAbsy($blocks); abstract protected function escapeHtmlEntities($text, $flags = 0); }