Sha256: 44e4822716f21e9516ed36f4dba1025f98c2725b5454f757872f697613343b8d

Contents?: true

Size: 777 Bytes

Versions: 5

Compression:

Stored size: 777 Bytes

Contents

div.imageblock(id=node.$id(),class=["#{node.$style()}", "#{node.$role()}"],style={
  "text-align": node.$attr('align'),
  float: node.$attr('float') ? "float: #{node.$attr('float')}" : ''
})
  .content
    if node.$attr('link', false)
      a.image(href=node.$attr('link'))
        img(src=node.$image_uri(node.$attr('target')),alt=node.$attr('alt'),width=node.$attr('width'),height=node.$attr('height'),style=[node.$attr('background') ? "background: #{node.$attr('background')}" : ""])
    else
      img(src=node.$image_uri(node.$attr('target')),alt=node.$attr('alt'),width=node.$attr('width'),height=node.$attr('height'),style=[node.$attr('background') ? "background: #{node.$attr('background')}" : ""])
    if node.$title() != false
      .title !{node.$captioned_title()}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-revealjs-1.0.4 templates/jade/image.jade
asciidoctor-revealjs-1.0.3 templates/jade/image.jade
asciidoctor-revealjs-1.0.2 templates/jade/image.jade
asciidoctor-revealjs-1.0.1 templates/jade/image.jade
asciidoctor-revealjs-1.0.0 templates/jade/image.jade