templates/inline_image.html.slim in asciidoctor-revealjs-3.1.0 vs templates/inline_image.html.slim in asciidoctor-revealjs-4.0.0
- old
+ new
@@ -3,22 +3,22 @@
- 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
- if attr? :link
- a.image href=(attr :link) target=(attr :window)
+ 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)
- elsif @type == 'icon' && !(@document.attr? :icons)
- if attr? :link
- a.image href=(attr :link) target=(attr :window)
+ a.image href=(attr :link) target=(attr :window) data-preview-link=(bool_data_attr :link_preview)
|[#{attr :alt}]
- else
|[#{attr :alt}]
- else
- src = (@type == 'icon' ? (icon_uri @target) : (image_uri @target))
- if attr? :link
- a.image href=(attr :link) target=(attr :window)
+ a.image href=(attr :link) target=(attr :window) data-preview-link=(bool_data_attr :link_preview)
img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)
- else
img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)