CodeSpan

class CodeSpan(val text: String, val content: CodeSpan.ContentInfo? = null) : PlainTextNode

Inline code.

Parameters

text

text content

content

additional content this code holds, if any

Constructors

Link copied to clipboard
constructor(text: String, content: CodeSpan.ContentInfo? = null)

Types

Link copied to clipboard
data class ColorContent(val color: Color) : CodeSpan.ContentInfo

A color linked to a CodeSpan. For instance, this content may be assigned to a CodeSpan if its text holds information about a color's hex.

Link copied to clipboard
sealed interface ContentInfo

Additional content a CodeSpan may hold.

Properties

Link copied to clipboard
Link copied to clipboard
open override val text: String

Functions

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

Accepts a visitor.

Link copied to clipboard