class Crst::Text

Overview

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"

Defined in:

crst/nodes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(content : String) #

[View source]

Instance Method Detail

def content : String #

The text content


[View source]
def content=(content : String) #

The text content


[View source]