Method: IsoDoc::Function::Inline#eref_parse

Defined in:
lib/isodoc/function/inline.rb

#eref_parse(node, out) ⇒ Object



86
87
88
89
90
91
92
93
94
95
# File 'lib/isodoc/function/inline.rb', line 86

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