Package-level declarations

Types

Link copied to clipboard
abstract class MarkdownListConverter<T, E, N : Node>(list: ListBlock)

Helper that converts a Markdown list to a value of type T.

Link copied to clipboard
class MarkdownListToCollectionValue<T : OutputValue<*>>(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T) : MarkdownListToIterable<OrderedCollectionValue<T>, T>

Helper that converts a Markdown list to an OrderedCollectionValue.

Link copied to clipboard
class MarkdownListToDictionaryValue<T : OutputValue<*>>(list: ListBlock, inlineValueMapper: (String) -> T, nestedValueMapper: (ListBlock) -> T, nothingValueMapper: () -> T) : MarkdownListConverter<DictionaryValue<T>, Pair<String, T>, TextNode>

Helper that converts a Markdown list to a DictionaryValue.

Link copied to clipboard
abstract class MarkdownListToIterable<O, T>(list: ListBlock, inlineValueMapper: (Node) -> T, nestedValueMapper: (Node, ListBlock) -> T) : MarkdownListConverter<O, T, Node>

Abstract helper that converts a Markdown list to a flat (non-keyed) output of type O, by mapping each list item to an element of type T.

Link copied to clipboard
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.