Method: IsoDoc::WordFunction::Body#xref_parse
- Defined in:
- lib/isodoc/word_function/inline.rb
#xref_parse(node, out) ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/isodoc/word_function/inline.rb', line 69 def xref_parse(node, out) target = /#/.match(node["target"]) ? node["target"].sub(/#/, ".doc#") : "##{node["target"]}" out.a(**{ "href": target }) do |l| node.children.each { |n| parse(n, l) } end end |