MarkdownListToCollectionValue

class MarkdownListToCollectionValue<T : OutputValue<*>>(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T) : MarkdownListToIterable<OrderedCollectionValue<T>, T>

Helper that converts a Markdown list to an OrderedCollectionValue.

Parameters

list

list to convert

inlineValueMapper

function that maps the node of a list item to a value

nestedValueMapper

function that maps a nested list item to a value. The first argument is the parent node, and the second is the nested ListBlock

T

type of values in the collection

See also

Constructors

Link copied to clipboard
constructor(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard