Method: IsoDoc::Function::Inline#link_parse
- Defined in:
- lib/isodoc/function/inline.rb
#link_parse(node, out) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/isodoc/function/inline.rb', line 6 def link_parse(node, out) url = node["target"] node["update-type"] == "true" and url = suffix_url(url) out.a **attr_code(href: url, title: node["alt"]) do |l| if node.elements.empty? && node.text.strip.empty? l << @c.encode(node["target"].sub(/^mailto:/, ""), :basic, :hexadecimal) else node.children.each { |n| parse(n, l) } end end end |