BlockAstBuilder

A builder of block nodes.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun blockQuote(type: BlockQuote.Type? = null, attribution: InlineAstBuilder.() -> Unit? = null, block: BlockAstBuilder.() -> Unit)
Link copied to clipboard
fun build(): List<Node>

Builds the tree.

Link copied to clipboard
fun figure(block: InlineAstBuilder.() -> Unit)
Link copied to clipboard
fun heading(level: Int, block: InlineAstBuilder.() -> Unit)
Link copied to clipboard
fun node(node: Node)

Adds a node to the tree.

Link copied to clipboard
fun orderedList(startIndex: Int = 1, loose: Boolean, block: ListAstBuilder.() -> Unit)
Link copied to clipboard
fun paragraph(block: InlineAstBuilder.() -> Unit)
Link copied to clipboard
fun root(block: BlockAstBuilder.() -> Unit)
Link copied to clipboard
fun table(block: TableAstBuilder.() -> Unit)
Link copied to clipboard
operator fun Node.unaryPlus()

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

Link copied to clipboard
fun unorderedList(loose: Boolean, block: ListAstBuilder.() -> Unit)