Sha256: 209a5d1b10c6f3f2d5c051b3a46d61ecb670a0a78b679624cabcac9b1e97ca92

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

= 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 = [(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)
  - elsif @type == 'icon' && !(@document.attr? :icons)
    - if attr? :link
      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) 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)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
asciidoctor-revealjs-5.0.0.rc1 templates/inline_image.html.slim
asciidoctor-revealjs-4.1.0 templates/inline_image.html.slim
asciidoctor-revealjs-4.1.0.rc5 templates/inline_image.html.slim
asciidoctor-revealjs-4.1.0.rc4 templates/inline_image.html.slim
asciidoctor-revealjs-4.1.0.rc3 templates/inline_image.html.slim
asciidoctor-revealjs-4.1.0.rc2 templates/inline_image.html.slim