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

- 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] || 'figure') + block.assign_caption (attrs.delete 'caption'), (opts[:caption_context] || :image) end block end def create_inline parent, context, text, opts = {}