MarkdownListToIterable

constructor(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T)

Parameters

O

type of the final converted output

T

type of individual element values in the list

list

list to convert

inlineValueMapper

function that maps the node of a list item to a value. For example, the paragraph node containing file1.txt in - file1.txt

nestedValueMapper

function that maps a nested list item to a value. The first argument is the parent node (e.g. the paragraph containing the label dir1 in - dir1), and the second is the nested ListBlock containing its children. In the compact syntax (- - value), both arguments refer to the same ListBlock node