Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::InlineQuotedTemplate

Constants

NO_TAGS
QUOTE_TAGS

Public Instance Methods

quote_text(text, type, role) click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 867
def quote_text(text, type, role)
  start_tag, end_tag = QUOTE_TAGS[type] || NO_TAGS
  if role
    if start_tag.start_with? '<'
      %(#{start_tag.chop} class="#{role}">#{text}#{end_tag})
    else
      %(#{start_tag}<span class="#{role}">#{text}</span>#{end_tag})
    end
  else
    "#{start_tag}#{text}#{end_tag}"
  end
end
result(node) click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 880
def result(node)
  quote_text(node.text, node.type, (node.attr 'role'))
end
template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 884
def template
  :invoke_result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.