Method: IsoDoc::Function::Inline#link_parse

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


5
6
7
8
9
10
11
12
13
# File 'lib/isodoc/function/inline.rb', line 5

def link_parse(node, out)
  out.a **attr_code(href: node["target"], 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