You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As emerged in this discussion, pandoc downloads and includes an audio file in the EPUB output file.
HTML output does not include external resources by default and you can include them with the option --self-contained. IMO epub output should work the same way.
Test file:
# Test
Testing the audio element from an external link:
<audiocontrols>
<sourcesrc="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"type="audio/mpeg">
</audio>
$ pandoc --version
pandoc 1.15.1.1
Command: pandoc -o output.epub inpub.md
The text was updated successfully, but these errors were encountered:
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.
Another thought: would it be possible to parse the link and check if it's a local path or an http:// link?
That way, it would work also when CommonMark will add the syntax to embed audio and video.
Another thought: would it be possible to parse the link and check if
it's a local path or an http:// link?
Many people will want external resources to be embeded, so
that the epub is self-contained. Since that is the current
behavior, I'd rather have an explicit flag for this.
That way, it would work also when CommonMark will add the [1]syntax to
embed audio and video.
You've linked to a forum post where people are making
suggestions. It's not clear that CommonMark will have any
specific syntax for this, or what it will be.
As emerged in this discussion, pandoc downloads and includes an audio file in the EPUB output file.
HTML output does not include external resources by default and you can include them with the option
--self-contained
. IMO epub output should work the same way.Test file:
$ pandoc --version
pandoc 1.15.1.1
Command:
pandoc -o output.epub inpub.md
The text was updated successfully, but these errors were encountered: