Method: IsoDoc::Function::Inline#link_parse

Defined in:
lib/isodoc/function/inline.rb


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.text.empty?
      l << node["target"].sub(/^mailto:/, "")
    else node.children.each { |n| parse(n, l) }
    end
  end
end