Class: RDoc::Markup::ToHtml
- Inherits:
-
Object
- Object
- RDoc::Markup::ToHtml
- Defined in:
- lib/rdoc/generator/babel.rb
Overview
:stopdoc:
Instance Method Summary collapse
Instance Method Details
#accept_heading(heading) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rdoc/generator/babel.rb', line 10 def accept_heading heading level = [6, heading.level].min label = heading.label @code_object @res << if @output_decoration "\n<h#{level} id=\"#{label}\">" else "\n<h#{level}>" end @res << to_html(heading.text) @res << "</h#{level}>\n" end |