Method: IsoDoc::PresentationXMLConvert#eref2link1
- Defined in:
- lib/isodoc/presentation_function/erefs.rb
#eref2link1(node, href) ⇒ Object
218 219 220 221 222 223 224 |
# File 'lib/isodoc/presentation_function/erefs.rb', line 218 def eref2link1(node, href) url = href[:link] att = href[:type] == :attachment ? "attachment='true'" : "" repl = "<fmt-link #{att} target='#{url}'>#{node.children}</link>" node["type"] == "footnote" and repl = "<sup>#{repl}</sup>" node.replace(repl) end |