lib/maruku/output/to_html.rb
# nil if not applicable, else SPAN element
nil if not applicable, else SPAN element
nil if not applicable else SPAN element
def render_section_number
    return nil unless section_number && !section_number.empty?
    span = xelem('span')
    span['class'] = 'maruku_section_number'
    span << xtext(section_number)
  end
def render_section_number return nil unless section_number && ! section_number . empty? span = xelem ( 'span' ) span [ 'class' ] = 'maruku_section_number' span << xtext ( section_number ) end
nil if not applicable, else SPAN element
nil if not applicable else SPAN element
# if we are bound to a section, add section number