class Kramdown::Converter::Toc
def convert(el)
def convert(el) if el.type == :header && in_toc?(el) attr = el.attr.dup attr['id'] = generate_id(el.options[:raw_text]) if @options[:auto_ids] && !attr['id'] add_to_toc(el, attr['id']) if attr['id'] else el.children.each {|child| convert(child) } end @toc end