Method: IsoDoc::WordFunction::Footnotes#footnote_parse
- Defined in:
- lib/isodoc/word_function/footnotes.rb
#footnote_parse(node, out) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/isodoc/word_function/footnotes.rb', line 60 def footnote_parse(node, out) return table_footnote_parse(node, out) if @in_table || @in_figure fn = node["reference"] out.a **{ "epub:type": "footnote", href: "#ftn#{fn}" } do |a| a.sup { |sup| sup << fn } end return if @seen_footnote.include?(fn) @in_footnote = true @footnotes << make_generic_footnote_text(node, fn) @in_footnote = false @seen_footnote << fn end |