class Asciidoctor::DocBook45::InlineAnchorTemplate
Public Instance Methods
anchor(target, text, type, node)
click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 690 def anchor(target, text, type, node) case type when :ref %Q(<anchor#{common_attrs target, nil, text}/>) when :xref if node.attr? 'path', nil linkend = (node.attr 'fragment') || target text.nil? ? %Q(<xref linkend="#{linkend}"/>) : %Q(<link linkend="#{linkend}">#{text}</link>) else text = text || (node.attr 'path') %Q(<ulink url="#{target}">#{text}</ulink>) end when :link %Q(<ulink url="#{target}">#{text}</ulink>) when :bibref %Q(<anchor#{common_attrs target, nil, "[#{target}]"}/>[#{target}]) end end
result(node)
click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 709 def result(node) anchor(node.target, node.text, node.type, node) end
template()
click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 713 def template :invoke_result end