class RDoc::Markup::Heading

def self.to_html

def self.to_html
  return @to_html if @to_html
  markup = RDoc::Markup.new
  markup.add_special RDoc::CrossReference::CROSSREF_REGEXP, :CROSSREF
  @to_html = RDoc::Markup::ToHtml.new nil
  def @to_html.handle_special_CROSSREF special
    special.text.sub(/^\\/, '')
  end
  @to_html
end

def self.to_label

def self.to_label
  @to_label ||= RDoc::Markup::ToLabel.new
end

def accept visitor

def accept visitor
  visitor.accept_heading self
end

def aref

def aref
  "label-#{self.class.to_label.convert text.dup}"
end

def plain_html

def plain_html
  self.class.to_html.to_html(text.dup)
end

def pretty_print q # :nodoc:

:nodoc:
def pretty_print q # :nodoc:
  q.group 2, "[head: #{level} ", ']' do
    q.pp text
  end
end