Method: IsoDoc::Function::Inline#xref_parse
- Defined in:
- lib/isodoc/function/inline.rb
#xref_parse(node, out) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/isodoc/function/inline.rb', line 39 def xref_parse(node, out) target = if node["target"].include?("#") node["target"].sub("#", ".html#") else "##{node['target']}" end out.a(href: target) { |l| no_locality_parse(node, l) } end |