MarkdownListToList

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

Helper that converts a Markdown list to a List.

Parameters

T

type of values in the list

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

Constructors

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

Functions

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