Let's try a regular path file on a server, see file attached:
pandoc -o pandoc-server.epub [2]pandoc-server.md
pandoc downloads the file and includes it in the epub. Why?
HTML output does not include external resources by default and you can
include them with option --self-contained. IMO epub output should work
the same. Is it a bug or a design decision?
Design decision. The idea is that EPUBs should be
self-contained electronic books that can be read on your
device even when you don't have an internet connection.
We treat PDFs, docx, odt similarly -- all necessary
resources are downloaded and included.
In principle we could change this behavior, but a change in
the default here might break existing workflows. One
possibility would be to make this behavior sensitive to some
kind of flag. For example, if the `data-external` attribute
is set on `<source>` element, don't include in the EPUB.