ListContext

inner class ListContext(bullet: (counter: Int) -> String)(source)

Context for building structured lists (bulleted, numbered).

This class provides methods for adding list items with various content types, including plain text, nested content, and titled content with nested elements.

Constructors

Link copied to clipboard
constructor(bullet: (counter: Int) -> String)

Functions

Link copied to clipboard
fun item(block: MarkdownContentBuilder.() -> Unit)

Adds a list item with content generated from a block.

fun item(text: String)

Adds a list item with the given text.

fun item(title: String, block: MarkdownContentBuilder.() -> Unit)

Adds a list item with a title and nested content.