Method: IsoDoc::Function::Inline#eref_parse

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

#eref_parse(node, out) ⇒ Object



76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/isodoc/function/inline.rb', line 76

def eref_parse(node, out)
  if href = eref_target(node)
    if node["type"] == "footnote"
      out.sup do |s|
        s.a(**{ href: href }) { |l| no_locality_parse(node, l) }
      end
    else
      out.a(**{ href: href }) { |l| no_locality_parse(node, l) }
    end
  else no_locality_parse(node, out)
  end
end