ReferenceLink

class ReferenceLink(val label: InlineContent, val reference: InlineContent, val fallback: () -> Node, val onResolve: MutableList<(resolved: LinkNode) -> Unit> = mutableListOf()) : Node

A link that references a LinkDefinition.

Parameters

label

inline content of the displayed label

reference

label of the LinkDefinition this link points to

fallback

supplier of the node to show instead of label in case the reference is invalid

onResolve

actions to perform when the reference is resolved

See also

Constructors

Link copied to clipboard
constructor(label: InlineContent, reference: InlineContent, fallback: () -> Node, onResolve: MutableList<(resolved: LinkNode) -> Unit> = mutableListOf())

Properties

Link copied to clipboard
val fallback: () -> Node
Link copied to clipboard
Link copied to clipboard
val onResolve: MutableList<(resolved: LinkNode) -> Unit>
Link copied to clipboard

Functions

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

Accepts a visitor.

Link copied to clipboard