Create single-page HTML output, prepares the terrain for PDF/ePub output
This commit is contained in:
@ -17,11 +17,11 @@ class ImageRenderer extends \League\CommonMark\Inline\Renderer\ImageRenderer
|
||||
{
|
||||
// External Images need special handling
|
||||
if (strpos($inline->getUrl(), 'http') === 0) {
|
||||
return new HtmlElement(
|
||||
'ac:image',
|
||||
[],
|
||||
new HtmlElement('ri:url', ['ri:value' => $inline->getUrl()])
|
||||
);
|
||||
return new HtmlElement(
|
||||
'ac:image',
|
||||
[],
|
||||
new HtmlElement('ri:url', ['ri:value' => $inline->getUrl()])
|
||||
);
|
||||
}
|
||||
|
||||
return parent::render($inline, $htmlRenderer);
|
||||
|
Reference in New Issue
Block a user