summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-10-15 12:38:12 +0300
committerMarat Radchenko <marat@slonopotamus.org>2020-10-15 12:38:43 +0300
commit7f93b2fe865e69cbf77e33a351d40ec8291f8219 (patch)
treec7592cb8205b43e612ad615b93e382f60192e4fd /lib
parent5d7aee9b0def9f88b4e618dd2fef2a37f9e57f58 (diff)
resolves #371 do not add bogus entries to manifest when :data-uri: attribute is set
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor-epub3/converter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb
index dbf7377..cec1e6e 100644
--- a/lib/asciidoctor-epub3/converter.rb
+++ b/lib/asciidoctor-epub3/converter.rb
@@ -967,6 +967,8 @@ document.addEventListener('DOMContentLoaded', function(event, reader) {
epub_properties << 'svg' unless epub_properties.include? 'svg'
end
+ return if target.start_with? 'data:'
+
if Asciidoctor::Helpers.uriish? target
# We need to add both local and remote media files to manifest
fs_path = nil