Paragraph

class Paragraph(val text: InlineContent, val style: NodeStyle = NodeStyle.DEFAULT) : TextNode, StylableNode, PrimitiveFunctionBackedNode

A general paragraph.

Parameters

text

text content

Constructors

Link copied to clipboard
constructor(text: InlineContent, style: NodeStyle = NodeStyle.DEFAULT)

Properties

Link copied to clipboard
open override val backingFunctionName: String

The name of the function that backs this node, from a loaded library.

Link copied to clipboard
open override val children: List<Node>
Link copied to clipboard

Whether the synthesized backing call should be treated as a block call. Defaults to true; inline primitive nodes should override to false so the inline output mapper is used during expansion.

Link copied to clipboard
open override val style: NodeStyle

The style of this node.

Link copied to clipboard
open override val text: InlineContent

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Returns a sequence of all nodes in the tree, where this is the root node. The sequence is generated by traversing the tree in depth-first order. The root node is excluded from the sequence.

Link copied to clipboard

Retrieves the stored media associated with this node, if any.

Link copied to clipboard

Materializes this node's properties into the arguments of the backing function call. Argument names must match the parameter names of the function identified by backingFunctionName.

Link copied to clipboard
fun Node.withChildren(newChildren: List<Node>): Node

Returns a copy of this node with its children replaced by newChildren.

Link copied to clipboard