SoftBreak

object SoftBreak : Node

A soft line break within a paragraph, representing a newline in the source that is not a hard line break (i.e., not preceded by two spaces or a backslash).

The rendering of a soft break depends on the document language: for CJK languages (Chinese, Japanese, Korean) no space is inserted, while for other languages a space is inserted.

Functions

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

Accepts a visitor.

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