Is there any way I can customize the generated EPUB/text/cover.xhtml file created by pandoc?

Basically I would need to replace the default:

<div id="cover-image">
<img src="../media/cover.png" alt="cover image" />
</div>


By something like this:

<div id="cover-image">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 900 1200" preserveAspectRatio="none">
<image width="900" height="1200" xlink:href="../media/cover.png"/>
</svg>
</div>


The idea is to wrap the cover image in an <svg> </svg> tag so that it scales to the dimensions of the e-reader.

Note that 900x1200 just happens to be the dimensions of the default covers I generate on my system.

I am having a problem where my covers are not correctly displayed on the e-reader I use (ancient Kobo glo' with 758x1024 screen).

Thanks,

SM

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a69adf22-5bde-4df3-9d43-fba2c67f4faa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.