Create single-page HTML output, prepares the terrain for PDF/ePub output

This commit is contained in:
Stéphane Goetz
2015-11-06 22:44:34 +01:00
parent 975f7fdee3
commit 295aee5f77
24 changed files with 2478 additions and 93 deletions

View File

@ -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);