I have to say that including only local resources would be nice for me too, and here I mean both images and css.

On Wednesday, May 3, 2017 at 6:04:08 AM UTC-4, John MacFarlane wrote:
If you just want to embed a css file, you could try using
--include-in-header.  (In this case, you'd need to include
the <style> and </style> tags in the css file, or put them
in separate files and use --include-in-header to include
them all in the right order.)  ALternatively you could use
a custom template with

    <style>
    $mycss$
    </style>

and fill the variable with

    pandoc --template mytemplate.html -Vmycss="$(cat mystyles.css)"

Is there any way to do this in the YAML or does it have to be a command switch? (I suspect not.)
 
Also see the manual under --self-contained:

> Elements with the attribute `data-external="1"` will be
> left alone; the documents they link to will not be
> incorporated in the document.

Does this work for any output format then and not just ePub? 

--
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/ae8a3f79-e411-4164-8761-621c2dff5b4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.