Link

class Link(val label: InlineContent, val url: String, val title: String?) : LinkNode, TextNode

A link.

Parameters

label

inline content of the displayed label

url

URL this link points to

title

optional title

Constructors

Link copied to clipboard
constructor(label: InlineContent, url: String, title: String?)

Properties

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

The text of the node as processed inline content.

Link copied to clipboard
open override val title: String?
Link copied to clipboard
open override val url: String

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