class Kramdown::Parser::Kramdown

def update_raw_text(item)

Update the raw text for automatic ID generation.
def update_raw_text(item)
  raw_text = +''
  append_text = lambda do |child|
    if child.type == :text
      raw_text << child.value
    else
      child.children.each {|c| append_text.call(c) }
    end
  end
  append_text.call(item)
  item.options[:raw_text] = raw_text
end