lib/isodoc/function/inline.rb in isodoc-0.8.1 vs lib/isodoc/function/inline.rb in isodoc-0.8.3
- old
+ new
@@ -9,10 +9,16 @@
end
def link_parse(node, out)
linktext = node.text
linktext = node["target"] if linktext.empty?
- out.a(**{ "href": node["target"] }) { |l| l << linktext }
+ out.a(**{ "href": node["target"] }) do |l|
+ if node.text.empty?
+ l << linktext
+ else
+ node.children.each { |n| parse(n, l) }
+ end
+ end
end
def callout_parse(node, out)
out << " <#{node.text}>"
end