Class: Marker::Document
- Inherits:
-
ParseNode
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- Marker::Document
- Defined in:
- lib/marker/markup.rb
Instance Method Summary collapse
- #make_options(user_options) ⇒ Object
-
#markup ⇒ Object
– defaults ++.
- #to_html(options = {}) ⇒ Object
- #to_s(options = {}) ⇒ Object
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#make_options(user_options) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/marker/markup.rb', line 30 def ( ) o = Marker..dup o.merge!( :link_base => Marker.link_base ) o.merge!( :footnotes => Footnotes.new ) unless [:nofootnotes] o.merge!( ) o end |
#markup ⇒ Object
– defaults ++
39 40 41 |
# File 'lib/marker/markup.rb', line 39 def markup nil end |
#to_html(options = {}) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/marker/markup.rb', line 11 def to_html( = {} ) = ( ) markup ? ( markup.to_html( ) + "\n" + [:footnotes].to_html( ) ) : "" end |
#to_s(options = {}) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/marker/markup.rb', line 20 def to_s( = {} ) = ( ) markup ? ( markup.to_s( ) + "\n\n" + [:footnotes].to_s( ) ) : "" end |