Class: Marker::Markup
- Inherits:
-
RecursiveList
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- RecursiveList
- Marker::Markup
- Defined in:
- lib/marker/markup.rb
Instance Method Summary collapse
Methods inherited from RecursiveList
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#make_options(user_options) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/marker/markup.rb', line 31 def ( ) o = Marker..dup o.merge!( :link_base => Marker.link_base ) o.merge!( :footnotes => Footnotes.new ) unless [:nofootnotes] o.merge!( ) o end |
#to_html(options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/marker/markup.rb', line 11 def to_html( = {} ) = ( ) [ to_a.map{ |b| b.to_html() }, [:footnotes].to_html( ) ].flatten.join("\n") end |
#to_s(options = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/marker/markup.rb', line 21 def to_s( = {} ) = ( ) [ to_a.map{ |b| b.to_s() }, [:footnotes].to_s( ) ].flatten.join("\n") end |