ListParsers

Provides parsers for bullet lists ("unordered list" in the Markdown spec) and enumerated lists ("ordered list" in the Markdown spec).

class Object
trait Matchable
class Any

Value members

Concrete methods

def list[T <: Block, I <: ListItem](itemStartChar: Parser[Any], itemStartRest: Parser[Any], newList: List[I] => T, newItem: (Int, Seq[Block]) => I)(implicit recParsers: RecursiveParsers): Parser[T]

Parses a list based on the specified helper parsers.

Parses a list based on the specified helper parsers.

Value parameters:
itemStartChar

the parser for the character that starts a list item

itemStartRest

parser that recognizes the start of a list item after the first character, result will be discarded

newItem

function that produces a new list item element based on position and content arguments

newList

function that produces a block element for the document tree

Concrete fields

Parses the start of a bullet list item.

Parses the start of a bullet list item.

Parses a bullet list, called "unordered list" in the Markdown syntax description.

Parses a bullet list, called "unordered list" in the Markdown syntax description.

Parses the start of an enumerated list item.

Parses the start of an enumerated list item.

Parses an enumerated list, called "ordered list" in the Markdown syntax description.

Parses an enumerated list, called "ordered list" in the Markdown syntax description.