Sha256: b4a8c5f668bdab40481b04b6cbde04979f4f189a80ca36d323d8d76b6c7023ea
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
span class=[@type,role] style=("float: #{attr :float}" if attr? :float) - 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 - 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-revealjs-4.0.1 | templates/inline_image.html.slim |
asciidoctor-revealjs-4.0.0 | templates/inline_image.html.slim |