Method: MaRuKu::Out::HTML#render_section_number
- Defined in:
- lib/maruku/output/to_html.rb
#render_section_number ⇒ Object
nil if not applicable, else SPAN element
458 459 460 461 462 463 464 465 |
# File 'lib/maruku/output/to_html.rb', line 458 def render_section_number return nil unless section_number && !section_number.empty? # if we are bound to a section, add section number span = xelem('span') span['class'] = 'maruku_section_number' span << xtext(section_number) end |