TextTransform

class TextTransform(val data: TextTransformData, val className: String? = null, val text: InlineContent) : TextNode

A portion of text with a specific visual transformation.

Parameters

data

transformation the text undergoes

className

custom class name for the element, useful for applying custom styles, if supported by the renderer

Constructors

Link copied to clipboard
constructor(data: TextTransformData, className: String? = null, text: InlineContent)

Properties

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

The text of the node as processed inline content.

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
fun Node.withChildren(newChildren: List<Node>): Node

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

Link copied to clipboard