Class: Marker::Italic

Inherits:
ParseNode show all
Defined in:
lib/marker/text.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#to_html(options = {}) ⇒ Object



137
138
139
# File 'lib/marker/text.rb', line 137

def to_html( options = {} )
  "<i>#{italic_enclosed_text.to_html(options)}</i>"
end

#to_s(options = {}) ⇒ Object



141
142
143
# File 'lib/marker/text.rb', line 141

def to_s( options = {} )
  "/#{italic_enclosed_text.to_s(options)}/"
end