item
Adds a list item with the given text.
Handles multiline text by properly indenting continuation lines.
Parameters
text
The text content of the list item
Adds a list item with content generated from a block.
Useful for creating list items with complex content or nested elements.
Example:
bulleted {
item {
+"Complex item with multiple paragraphs"
codeblock("val x = 1", "kotlin")
}
}
Content copied to clipboard
Parameters
block
The content builder for the list item
Adds a list item with a title and nested content.
The title appears on the first line, and the nested content follows on subsequent lines.
Example:
bulleted {
item("Main point:", {
+"Supporting details"
bulleted {
item("Sub-point 1")
item("Sub-point 2")
}
})
}
Content copied to clipboard
Parameters
title
The title text for the list item
block
The content builder for the nested content