Skip to content

Commit

Permalink
Skip empty images - those are used most often for CSS flow etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed May 23, 2024
1 parent 3cfb2df commit 52a5336
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/coradoc/reverse_adoc/converters/img.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 52a5336

Please sign in to comment.