Method: IsoDoc::PresentationXMLConvert#anchor_xref
- Defined in:
- lib/isodoc/presentation_function/xrefs.rb
#anchor_xref(node, target, container: false) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/isodoc/presentation_function/xrefs.rb', line 58 def anchor_xref(node, target, container: false) x = anchor_xref_short(node, target, container) t = @xrefs.anchor(target, :title) ret = case node["style"] when "basic" then t when "full" then anchor_xref_full(x, t) when "short", nil then x else @xrefs.anchor(target, node[:style].to_sym) end ret || x end |