Parent

Methods

Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::InlineFootnoteTemplate

Public Instance Methods

result(node) click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 1188
def result(node)
  index = node.attr :index
  if node.type == :xref
    %(<span class="footnoteref">[<a class="footnote" href="#_footnote_#{index}" title="View footnote.">#{index}</a>]</span>)
  else
    id_attribute = node.id ? %( id="_footnote_#{node.id}") : nil
    %(<span class="footnote"#{id_attribute}>[<a id="_footnoteref_#{index}" class="footnote" href="#_footnote_#{index}" title="View footnote.">#{index}</a>]</span>)
  end
end
template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 1198
def template
  :invoke_result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.