diff --git a/lib/coradoc/reverse_adoc/converters/img.rb b/lib/coradoc/reverse_adoc/converters/img.rb index c10f918..70252b0 100644 --- a/lib/coradoc/reverse_adoc/converters/img.rb +++ b/lib/coradoc/reverse_adoc/converters/img.rb @@ -82,8 +82,10 @@ def to_coradoc(node, _state = {}) attributes.add_positional(width) if width attributes.add_positional(height) if height - Coradoc::Element::Image::BlockImage.new(title, id, src, - attributes: attributes) + if src + Coradoc::Element::Image::BlockImage.new(title, id, src, + attributes: attributes) + end end end