# File lib/kramdown/converter/toc.rb, line 47
      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'], @toc) if attr['id']
        else
          el.children.each {|child| convert(child)}
        end
        @toc
      end