MarkdownListToCollectionValue
constructor(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T)
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