Class Asciidoctor::ListItem
In: lib/asciidoctor/list_item.rb
Parent: AbstractBlock

Public: Methods for managing items for AsciiDoc olists, ulist, and dlists.

Methods

content   fold_first   new   text   text?   to_s  

Attributes

marker  [RW]  Public: Get/Set the String used to mark this list item

Public Class methods

Public: Initialize an Asciidoctor::ListItem object.

parent - The parent list block for this list item text - the String text (default nil)

Public Instance methods

Public: Fold the first paragraph block into the text

Here are the rules for when a folding occurs:

Given: this list item has at least one block When: the first block is a paragraph that‘s not connected by a list continuation Or: the first block is an indented paragraph that‘s adjacent (wrapped line) Or: the first block is an indented paragraph that‘s not connected by a list continuation Then: then drop the first block and fold it‘s content (buffer) into the list text

Returns nothing

[Validate]