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
First, our logic in register_media_file is broken:
ifAsciidoctor::Helpers.uriish?target# We need to add both local and remote media files to manifestfs_path=nilelseout_dir=node.attr('outdir',nil,true) || doc_option(node.document,:to_dir)fs_path=(::File.joinout_dir,target) <-------------------------
unless ::File.exist?fs_pathbase_dir=root_document(node.document).base_dirfs_path= ::File.joinbase_dir,targetendend
Second, asciidoctor-epub3 assumes that "virtual" path (that is specified in AsciiDoc source) can be used as-is inside epub file. But this is not true in your case. Looks like we need to generate some path that would be used inside epub file.
slonopotamus
added a commit
to slonopotamus/asciidoctor-epub3
that referenced
this issue
Jan 12, 2025
AsciiDoctor documentation states that
The value of imagesdir can be an absolute path, relative path or URL
.Nonetheles, using an absolute path causes the image to not be included in the ePub file.
Reproducer: If the following
imagesdir.adoc
file and theimage.svg
are in/tmp
Causes raises the following error:
The text was updated successfully, but these errors were encountered: