class Kramdown::Parser::Kramdown

def parse_atx_header

Parse the Atx header at the current location.
def parse_atx_header
  return false unless after_block_boundary?
  text, id = parse_header_contents
  text.sub!(/[\t ]#+\z/, '') && text.rstrip!
  return false if text.empty?
  add_header(@src["level"].length, text, id)
  true
end