Try adding the ?dl=0 to the url in the markdown file before
converting to epub.
+++ Federico Bruni [Oct 12 15 16:37 ]:
> Hi all
> I'm creating a book in epub format and I need to link to **external
> audio files**.
> Using local files is not an option, because I want to keep the epub
> small and easy to share.
> After a few tests I see that the external link is correct when using
> the HTML output.
> When I use epub, however, the terminal output says that it could not
> find media and skipped it. I extracted the XHTML file in the epub and
> it contains a not existent file path:
> <audio controls>
> <source type="audio/mpeg" src="media/file0.mp3">
> </audio>
> Please note that the file I'm testing is on Dropbox and doesn't have a
> "regular" URL. As explained in the Dropbox help pages¹, you must add
> ?dl=0 to cause the browser to donwload the file instead of viewing the
> Dropbox web page. As I said, this link works fine in HTML but it
> doesn't in the EPUB format.
> I could find only this previous discussion² and it doesn't help.
> Thanks in advance
> Federico
> ¹ https://www.dropbox.com/help/201
> ²
> https://groups.google.com/forum/#!searchin/pandoc- discuss/epub$20extern
> al$20files/pandoc-discuss/DY4StO5j6o4/ZofZX8eYeM8J
>
> --
> 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 [1]pandoc-discus...@googlegroups.com .
> To post to this group, send email to
> [2]pandoc-...@googlegroups.com .
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/ 9bfbe401-688f-4aaf-
> bf96-ad4138998aef%40googlegroups.com .
> For more options, visit [4]https://groups.google.com/d/optout .
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-...@googlegroups.com
> 3. https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401- 688f-4aaf-bf96-ad4138998aef@ googlegroups.com?utm_medium= email&utm_source=footer
> 4. https://groups.google.com/d/optout