Class: Marker::Paragraph

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



11
12
13
14
15
16
17
# File 'lib/marker/text.rb', line 11

def to_html( options = {} )
  if text.no_wrap?
    text.to_html(options)
  else
    "<p>#{text.to_html(options)}</p>"
  end
end

#to_s(options = {}) ⇒ Object



19
20
21
# File 'lib/marker/text.rb', line 19

def to_s( options = {} )
  text.to_s(options)
end