class Kramdown::Converter::Base

def generate_id(str)

ID.
Uses the option +auto_id_prefix+: the value of this option is prepended to every generated

Generate an unique alpha-numeric ID from the the string +str+ for use as a header ID.
def generate_id(str)
  str = ::Kramdown::Utils::Unidecoder.decode(str) if @options[:transliterated_header_ids]
  gen_id = basic_generate_id(str)
  gen_id = 'section' if gen_id.empty?
  @used_ids ||= {}
  if @used_ids.key?(gen_id)
    gen_id += "-#{@used_ids[gen_id] += 1}"
  else
    @used_ids[gen_id] = 0
  end
  @options[:auto_id_prefix] + gen_id
end