InlineAstBuilder

A builder of inline nodes.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun autoCollapse(text: String, maxLength: Int)

Automatically collapses a text if its length exceeds maxLength.

Link copied to clipboard
fun build(): List<Node>

Builds the tree.

Link copied to clipboard
fun codeSpan(text: String)
Link copied to clipboard
fun collapse(text: InlineAstBuilder.() -> Unit, placeholder: InlineAstBuilder.() -> Unit = { text(InlineCollapse.DEFAULT_PLACEHOLDER) }, isOpen: Boolean = false)
Link copied to clipboard
fun emphasis(block: InlineAstBuilder.() -> Unit)
Link copied to clipboard
fun image(url: String, title: String? = null, width: Size? = null, height: Size? = null, label: InlineAstBuilder.() -> Unit = {})
Link copied to clipboard
fun lineBreak()
Link copied to clipboard
fun node(node: Node)

Adds a node to the tree.

Link copied to clipboard
fun strong(block: InlineAstBuilder.() -> Unit)
Link copied to clipboard
fun text(text: String)
Link copied to clipboard
operator fun Node.unaryPlus()

Adds this node to the tree. Shorthand for node (DSL syntactic sugar). Usage: +node