Method: IsoDoc::Function::Inline#xref_parse
- Defined in:
- lib/isodoc/function/inline.rb
#xref_parse(node, out) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/isodoc/function/inline.rb', line 27 def xref_parse(node, out) target = if /#/.match?(node["target"]) node["target"].sub(/#/, ".html#") else "##{node['target']}" end out.a(**{ href: target }) { |l| no_locality_parse(node, l) } end |