extract_header

in jekyll/plugins/toc_builder_hook.rb [122:130]


  def extract_header(header_node)
    title = header_node.options[:raw_text].strip
    return {
      :id => title.gsub(' ', '_'),
      :title => title,
      :type => :header
    }
  end