Method: IsoDoc::HtmlFunction::Footnotes#footnote_parse
- Defined in:
- lib/isodoc/html_function/footnotes.rb
#footnote_parse(node, out) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/isodoc/html_function/footnotes.rb', line 69 def footnote_parse(node, out) return table_footnote_parse(node, out) if (@in_table || @in_figure) && !node.ancestors.map(&:name).include?("name") fn = node["reference"] || UUIDTools::UUID.random_create.to_s attrs = { class: "FootnoteRef", href: "#fn:#{fn}" } out.a **attrs do |a| a.sup { |sup| sup << fn } end make_footnote(node, fn) end |