MarkdownListToList

class MarkdownListToList<T>(list: ListBlock, inlineValueMapper: (Node, rawContent: String?) -> T, nestedValueMapper: (Node, ListBlock) -> T) : MarkdownListToIterable<List<T>, T>

Helper that converts a Markdown list to a List.

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

Type Parameters

T

type of values in the list

Constructors

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

Functions

Link copied to clipboard
fun convert(): List<T>