MarkdownListToDictionary

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

Parameters

list

list to convert

inlineValueMapper

function that maps a raw string to a value. This is invoked when the entry is in a - key: value format.

nestedValueMapper

function that maps a nested list to a value. This is invoked when the entry is in the format:

- key
- value
nothingValueMapper

function that maps an empty value to a value. This is invoked when the entry is in the format:

- key
T

type of values in the dictionary