class

Crst::Text

Inherits Crst::Node < Reference < Object

Plain text node

Contains unformatted text content. This is the most basic inline node and typically appears as a child of formatted nodes like Emphasis or Strong.

Example:

text = Crst::Text.new("Hello World")
text.content # => "Hello World"

Constructors

new(content : String)
Source

Instance methods

content

The text content

Source
content=(content : String)

The text content

Source