lib/asciidoctor/extensions.rb in asciidoctor-2.0.2 vs lib/asciidoctor/extensions.rb in asciidoctor-2.0.3

- old
+ new

@@ -195,10 +195,10 @@ attrs['alt'] ||= (attrs['default-alt'] = Helpers.basename(target, true).tr('_-', ' ')) title = (attrs.key? 'title') ? (attrs.delete 'title') : nil block = create_block parent, :image, nil, attrs, opts if title block.title = title - block.assign_caption (attrs.delete 'caption'), (opts[:caption_context] || :image) + block.assign_caption (attrs.delete 'caption'), 'figure' end block end def create_inline parent, context, text, opts = {}