class Swordfish::Node::Footnote

Attributes

index[RW]

Public Instance Methods

content_to_html() click to toggle source
# File lib/swordfish/nodes/footnote.rb, line 14
def content_to_html
  return "" unless @index
  "<p><a id='footnote-#{@index}' href='#footnote-ref-#{@index}'>[#{@index}]</a> #{@children.map(&:to_html).join}</p>"
end
to_html() click to toggle source
# File lib/swordfish/nodes/footnote.rb, line 9
def to_html
  return "" unless @index
  "<a id='footnote-ref-#{@index}' href='#footnote-#{@index}'>[#{@index}]</a>"
end