class Crst::Emphasis

Overview

Emphasized text node (typically rendered in italics)

Created from RST text using single asterisks: emphasized text Can contain nested inline nodes for mixed formatting.

Example:

# RST: "*emphasized text*"
emphasis = Crst::Emphasis.new([Crst::Text.new("emphasized text")])

Defined in:

crst/nodes.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crst::Node

column : Int32 | Nil column, column=(column : Int32 | Nil) column=, end_column : Int32 | Nil end_column, end_column=(end_column : Int32 | Nil) end_column=, end_line : Int32 | Nil end_line, end_line=(end_line : Int32 | Nil) end_line=, line : Int32 | Nil line, line=(line : Int32 | Nil) line=

Constructor Detail

def self.new(children : Array(Crst::Node)) #

[View source]

Instance Method Detail

def children : Array(Crst::Node) #

Child nodes (typically Text nodes)


[View source]
def children=(children : Array(Crst::Node)) #

Child nodes (typically Text nodes)


[View source]