ListParsers

laika.markdown.ListParsers$
object ListParsers

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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

Attributes

Concrete fields

Parses the start of a bullet list item.

Parses the start of a bullet list item.

Attributes

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

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

Attributes

val enumListItemStart: Parser[String]

Parses the start of an enumerated list item.

Parses the start of an enumerated list item.

Attributes

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

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

Attributes