lib/asciidoctor/abstract_block.rb
# Public: Returns the converted alt text for this block image.
#
# Returns the [String] value of the alt attribute with XML special character
# and replacement substitutions applied.
Returns the converted alt text for this block image.
Returns the [String] value of the alt attribute with XML special character
and replacement substitutions applied.
Returns the converted alt text for this block image . Returns the [ String ] value of the alt attribute with XML special character and replacement substitutions applied .
def alt
    if (text = @attributes['alt'])
      if text == @attributes['default-alt']
        sub_specialchars text
      else
        text = sub_specialchars text
        (ReplaceableTextRx.match? text) ? (sub_replacements text) : text
      end
    end
  end
def alt if ( text = @attributes [ 'alt' ] ) if text == @attributes [ 'default-alt' ] sub_specialchars text else text = sub_specialchars text ( ReplaceableTextRx . match? text ) ? ( sub_replacements text ) : text end end end
Public: Returns the converted alt text for this block image.
Public : Returns the converted alt text for this block image .