# File lib/rdoc/markup/to_html.rb, line 268 def accept_heading heading level = [6, heading.level].min label = heading.aref label = [@code_object.aref, label].compact.join '-' if @code_object and @code_object.respond_to? :aref @res << "\n<h#{level} id=\"#{label}\">" @res << to_html(heading.text) @res << "</h#{level}>\n" end