Method: IsoDoc::Function::Inline#eref_parse
- Defined in:
- lib/isodoc/function/inline.rb
#eref_parse(node, out) ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/isodoc/function/inline.rb', line 77 def eref_parse(node, out) linkend = get_linkend(node) if node["type"] == "footnote" out.sup do |s| s.a(**{ "href": "#" + node["bibitemid"] }) { |l| l << linkend } end else out.a(**{ "href": "#" + node["bibitemid"] }) { |l| l << linkend } end end |