module Asciidoctor::Pdf::FormattedText::Markup::Entity2

Public Instance Methods

content() click to toggle source
# File lib/asciidoctor-pdf/formatted_text/parser.rb, line 789
def content
  if (entity_value = elements[1]).terminal?
    { type: :entity, name: entity_value.text_value.to_sym }
  else
    { type: :entity, number: entity_value.elements[1].text_value.to_i }
  end
end