Method: IsoDoc::HtmlFunction::Footnotes#make_generic_footnote_text

Defined in:
lib/isodoc/html_function/footnotes.rb

#make_generic_footnote_text(node, fnid) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/isodoc/html_function/footnotes.rb', line 37

def make_generic_footnote_text(node, fnid)
  noko do |xml|
    xml.aside **{ id: "fn:#{fnid}", class: "footnote" } do |div|
      node.children.each { |n| parse(n, div) }
    end
  end.join("\n")
end