templates/inline_image.html.slim in asciidoctor-revealjs-4.0.1 vs templates/inline_image.html.slim in asciidoctor-revealjs-4.1.0.rc2

- old
+ new

@@ -1,10 +1,7 @@ -span class=[@type,role] style=("float: #{attr :float}" if attr? :float) += html_tag('span', { :class => [@type, role, ('fragment' if (option? :step) || (attr? 'step'))], :style => ("float: #{attr :float}" if attr? :float) }.merge(data_attrs(@attributes))) - if @type == 'icon' && (@document.attr? :icons, 'font') - - style_class = ["fa fa-#{@target}"] - - style_class << "fa-#{attr :size}" if attr? :size - - style_class << "fa-rotate-#{attr :rotate}" if attr? :rotate - - style_class << "fa-flip-#{attr :flip}" if attr? :flip + - style_class = [(attr :set, 'fa'), "fa-#{@target}", ("fa-#{attr :size}" if attr? :size), ("fa-rotate-#{attr :rotate}" if attr? :rotate), ("fa-flip-#{attr :flip}" if attr? :flip)] - if attr? :link a.image href=(attr :link) target=(attr :window) data-preview-link=(bool_data_attr :link_preview) i class=style_class title=(attr :title) - else i class=style_class title=(attr :title)