Method: Asciidoctor::ListItem#text

Defined in:
lib/asciidoctor/list.rb

#textObject

Get the String text of this ListItem with substitutions applied.

By default, normal substitutions are applied to the text. The substitutions can be modified by altering the subs property of this object.

Returns:

  • the converted String text for this ListItem



78
79
80
81
# File 'lib/asciidoctor/list.rb', line 78

def text
  # NOTE @text can be nil if dd node only has block content
  @text && (apply_subs @text, @subs)
end